Skip to content
Sign upLog in
Discord.py mute
Profile icon
makxspa

How make mute command?If you can, please explain it to me because many solutions from the Internet do not work.

You are viewing a single comment. View All
Answered by 19wintersp [earned 5 cycles]
View Answer
Profile icon
19wintersp
Profile icon
19wintersp

@makxspa
I'm sorry, I don't know what to do; debugging a Discord bot as an onlooker is practically impossible.

Profile icon
makxspa

@19wintersp
I improved my design according to the youtube tutorial but there is a bug anyway. Could you point me out wrongly and write the corrected version?

Profile icon
19wintersp

@makxspa
You've assigned client twice, on line 11 and 12. Try renaming line 11 to bot and changing it accordingly on line 18.

Profile icon
makxspa

@19wintersp
I changed my name to bot but I don't know how to correct line 18 anyway.

Profile icon
19wintersp

@makxspa
Don't remove line 11; rename the variable:

Try renaming line 11 to bot

Profile icon
makxspa

@19wintersp
Maybe he formulates the question differently. Copy the entire main.py code, correct it and send it back because I don't understand it.

Profile icon
19wintersp

@makxspa
Maybe who formulates the question differently? And if you don't understand the code you're writing, that's very bad. I'm not going to do this for you. Copy-pasting code you don't understand is an awful way to do things.

Profile icon
makxspa

@19wintersp
You're right, it's the wrong way. I read it again and corrected it. No error occurs but after typing in discord: mute
@MEMBER
nothing happens. I guess I'm making a mistake in writing to discord. What is going on?

Profile icon
19wintersp

@makxspa
Should it be alieses or aliases on line 19? I don't know if that'll fix it, was just wondering.

Profile icon
makxspa

@19wintersp
No changes

Profile icon
19wintersp

@makxspa
Does m @member work?

Profile icon
makxspa

@19wintersp
no work
This file cannot be displayed:

Profile icon
19wintersp

@makxspa
Does this mute, or unmute people? You seem to be removing muted_role, is that intentional?

Profile icon
makxspa

@19wintersp
I've tried both, but both don't work

Profile icon
makxspa

@19wintersp
Right, I looked through a dozen guides and nothing. I think I will give up. Thanks for your help.