dignityofwar / diglet-bot

TypeScript Discord bot serving the Dignity of War community.
1 stars 0 forks source link

Albion: De-register player Command #163

Open Nightraven3721 opened 3 months ago

Nightraven3721 commented 3 months ago

/albion-remove server:X player:NAME

Output: 1.) removes player NAME and its registration from Server X (American/Europe) from the database

Reason: I'd like to have an option to remove someone who left on bad terms but are not banable from discord for it. (Mayor argument and left guild with threads but, for example, is still a valuable player to the other guild or in another part of discord.) Ban and Kick is something different. But Thinking of a way to remove a registration by a command if needed and not having to wait for a certain amount of time.

Maelstromeous commented 3 months ago

Requirements

  1. Add /albion-deregister command taking SERVER as an input.
  2. Command should check:
    1. The roles of the executing user match the Albion/X/Leader roles in case the integration permissions fail
    2. The targeted user is still registered
  3. Call / refactor and separate the de-registration of a member from the command. The command should strip their registration roles and ideally their content roles (#147).
  4. Report any errors with de-registration to the requesting user.
  5. Inform the target user they have been manually de-registered via a DM, if still present on server.
Nightraven3721 commented 3 months ago

I think the DM is optional. (Inform player yes/no)

Otherwise looks good to me.