How To Code a Discord Bot In Python Tutorial | Part 2 - Moderation Commands (Kick/Ban/Mute/Timeout)

How To Code a Discord Bot In Python Tutorial | Part 2 - Moderation Commands (Kick/Ban/Mute/Timeout)

Ish

1 год назад

8,002 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Team VOID
Team VOID - 31.08.2023 16:51

for the mute command if you're worried that they use a capital s, u can type timelimit.lower() so it gets is as lowercase

Ответить
ersddrrx
ersddrrx - 17.08.2023 02:49

for anyone out there I can make your life a whole lot easier. instead of using @commands.has_any_role(" "), you can use @commands.has_permissions(moderate_members=True) for mute. this makes it so only people that have timeout members permission can use this command. you can do the same thing with kick and ban with @commands.has_permissions(ban_members=True) or @commands.has_permissions(kick_members=True)

Ответить
Hellish
Hellish - 19.06.2023 06:01

can you send the lines of code for the mute command? I am having some errors and I cannot find where I messed up I am just a tad bit confused and it would help me greatly.

Ответить
Otirpus2
Otirpus2 - 17.06.2023 11:50

Uhm hey you there the timeout doesn't work it gives a long list of error

Ответить
Roranoa Zoro
Roranoa Zoro - 05.05.2023 23:06

someone help pls. my mute command works but i get an error when kicking or banning saying "Converting to "NoneType" failed for parameter "reason"

Ответить
Joshy D
Joshy D - 27.04.2023 23:30

I don't know if you will actually see this but how do you make the ban length a set time? I know some bots have a feature where you can ban them for a set length of time but I would like to know how you can do that. Hope you can help!

Ответить
39-Swayam Phanse 9-F
39-Swayam Phanse 9-F - 14.03.2023 15:43

Incredible Tutorial! You explained everything really well. Nice video. But you just showed your bot token in the video which isn't really safe. You can use environment variables to save the bot token.

Ответить
leStreamer
leStreamer - 09.03.2023 16:08

Amazing tutorial!

Ответить
Meijin
Meijin - 12.02.2023 09:17

Very useful but I can't use it cause some error

Ответить
Dev_Gs
Dev_Gs - 22.12.2022 17:18

No working (

Ответить
APMENN
APMENN - 20.12.2022 18:07

Hi, nice video, it help me so much, but i have question, it is possible to add custom maximum countdown, like mute for maximum 5minutes?

Ответить
Tesy.mp3
Tesy.mp3 - 15.12.2022 15:05

Nice tutorials, very useful. Thanks and keep it up😄

Ответить
Perplexed
Perplexed - 14.12.2022 17:20

umm can you give your discord server link?

Ответить
Laiba
Laiba - 14.12.2022 17:01

what a lovely test subject 😋

Ответить