Replies: 2 comments 4 replies
-
Why not use the commands extension? You can simplify all of this to: @commands.has_permissions(manage_roles = True)
@client.command()
async def mute(ctx, member: discord.Member):
await member.ban(...) (this will require a Bot instead of a Client) |
Beta Was this translation helpful? Give feedback.
2 replies
-
I highly recommend you learn python first |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi, I have no idea how to create a command to mute. My problem (which I think is) I don't know how to collect the id of the user mentioned in the first argument, If a user mentioned is not found, go to the id of the user. I leave an example:
The code is incomplete, but I need a sample code (that doesn't use discord.ext) to get my bearings. Since as you say I don't know how to separate the first argument that would be the command. See the id of the mentioned user, etc. Since most use Ext but I don't.
Beta Was this translation helpful? Give feedback.
All reactions