Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin commands: Mute/unmute someone #91

Open
samhwang opened this issue Mar 17, 2022 · 1 comment
Open

Admin commands: Mute/unmute someone #91

samhwang opened this issue Mar 17, 2022 · 1 comment

Comments

@samhwang
Copy link
Collaborator

samhwang commented Mar 17, 2022

Is your feature request related to a problem? Please describe.
These are long await features that were discussed that we never get to. Simply put, we need a command to mute, kick and ban someone from the server, and only the admins/mods can invoke this.

Describe the solution you'd like

  • Mute someone:

    • Syntax: -mute @name <reason> <duration>
    • There is already a Muted role already set up within the server.
    • @name and reason are required, duration is optional.
    • Default duration: 0 => Indefinitely.
    • When called, the bot will assign the Muted role to the @name user for the duration, and logs out the reason into a tracking channel. (Should this channel be public or private?)
    • After the duration ends, the bot will unassign the Muted role from the @name user.
  • Unmute someone:

    • Syntax: -unmute @name <reason>.
    • @name and reason are required.
    • This command should only affect muted users. If a normal user is called in this command, it will skip the execution.
    • If a muted user is unmuted by this command, log this out into a tracking channel, and also into db (if needed).
  • Kick someone

    • Syntax: -kick @name <reason>
    • @name and reason are required.
    • When called, the bot will kick the @name user, logs out the reason into a tracking channel.
  • Ban someone

    • Syntax: -ban @name <reason> <duration>
    • @name and reason are required, duration is optional.
    • Default duration: 0 => Indefinitely.
    • When called, the bot will ban the @name user for the specified amount of time from the server, and logs out the reason into a tracking channel.
    • After the duration ends, the bot will unban the user.
  • Unban someone

    • Syntax: -unban @name <reason>
    • @name and reason are required.
    • This command should only affect banned users. If a normal user is called in this command, it will skip the execution.
    • If a banned user is unbanned by this command, log this out into a tracking channel, and also into db (if needed).
  • Ideally, these should be recorded into a database table. Administrative log?

  • These commands should only be ran by Admin or Mods

  • These commands should not allow targeting someone of an upper level:

    • A User cannot use these commands on a Mod or Admin.
    • A Mod can use these commands on a User, but not an Admin
    • An Admin can use this on anyone, even other Admins.

Describe alternatives you've considered
These do not need to be prefixed commands, and can also be slash commands.

Additional context
https://discordjs.guide/popular-topics/faq.html#administrative

@samhwang
Copy link
Collaborator Author

Screen Shot 2022-04-22 at 11 15 03 pm
/kick and /ban is now implemented by Discord itself, so we don't need to do these 2 commands anymore.

@samhwang samhwang changed the title Admin commands: Mute/unmute, kick and ban/unban someone Admin commands: Mute/unmute someone Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant