Error Handling in Discord.py | Part 5: Make your own discord bot using Python!

preview_player
Показать описание

If you have any suggestions for future videos, leave it in the comments below.

Some Useful Links -

Рекомендации по теме
Комментарии
Автор

Subscribe if you enjoyed! Comment below if you have doubts!

CodeWithSwastik
Автор

Finally, I can let the bot say something when there's a cooldown instead of just receiving an error

lolbotdiscord
Автор

00:09 Moooom I'm on YT!! Amazing tutorial, again!

niristius
Автор

Very good tutorial, I had searched for hours to fix my errors Thank You

dobbcraft
Автор

Hyyy I'm watching from beginning But IN part 4 I think Moderation commands .... U showed Mute command ... By #mute ... Can I try Unmute command also ... ? U didn't showed Unmute command ... ? Pls Tell sir Tnx

rajaconstantine
Автор

Hey Swastik!
Can you please make videos on topics - Reaction Roles and Welcome Command
Thank you❤️

SymphonicMelody
Автор

Hi. Swastik.
Very clear discord bot tutorial.
Thanks

yollaifliandry
Автор

It says command not found but i coded one kick/ban/slowmode command idk why but MODERATOR commands are not working and when I show it too someone else they just ignore me or laugh at me :(







I literally don't know c of coding I made that bot by watching YT tutorials it would really helpful if u fixed my erorr

SAGAMERISTIC
Автор

thank you so much i spent days trying to find this

matthewbakken
Автор

this really helped me make my error not found command if you guys also here to do that skip to 6:20

EasonUEFN
Автор

@client.command()
async def on_error(ctx, error):
if isinstance(error, commands.MissingPermissions):
await ctx.send("You do not have the permission to do this command")
if isinstance(error, commands.commands.BotMissingPermissions):
await ctx.send("Bot is not given administrator powers")

did i do anything wrong it still gives me the error

muhammadshafeeq
Автор

If I add delete message command, the bots messages instead of the user's messages are getting deleted. If I don't add delete message command, its not deleting the message for required arguments missing, but its deleting its own error message of "you dont have perms"

hein_ji
Автор

Can you please do a music bot. You make the best tutorials!!!

tylermuranaka
Автор

Should do an in-depth guide on cogs and APIs uwu

spiceplayz
Автор

Can you tell how to make a event like drop and claim cash event .

rishikumar
Автор

Make a video on api calling where a good example is fetching data from a weather / AQI api

ash-lodc
Автор

It gives me two errors for the "commands" in

Pearoo
Автор

For the second one I get AttributeError: 'Command' object has no attribute 'MissingPermissions'
please help me

cynnamon
Автор

pls can u make a video on hosting discord bot

latajain
Автор

Ignoring exception in command kick:
Traceback (most recent call last):
File "C:\Users\MY PC\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\MY PC\Desktop\Discord bot\bot.py", line 25, in kick
await member.send("You have been kicked, because:"*reason)
TypeError: can't multiply sequence by non-int of type 'str'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\MY PC\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\MY PC\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 859, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\MY PC\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
Command raised an exception: TypeError: can't multiply sequence by non-int of type 'str'

Help me with this error.

anshtyagi