![]() The best function for that is setTimeout. To take away the role after a bit of time, you need a delay function. Now, you can give that user the Muted role. assuming you want the command to mention the target, for example: `!mute target = () It is incredibly annoying that I have to hear it myself every time I start speaking or listening. Then, you must get GuildMember object of the user you want to mute. Please make it possible to turn off the mute/unmute sound. Return ('There is no Muted role on this server') if there is no `Muted` role, send an error get the role by id:Ĭonst mutedRole = .get('') Ĭonst mutedRole = .find( However, these are the bare basics.įirst, you need to get the Muted role. There are many other features you should take into consideration when making the command, such as permission restrictions, confirmation messages, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |