Skip to content
Advertisement

Tag: discord.py

How to tag a user using the discord.Member argument?

I have a discord bot with the command !sad. On execution the bot should reply with a random string from sad_list. I want the option to have the bot tag someone if you execute the command with the user: discord.Member argument. Preferred output: as opposed to only The following has already been tried: However this simply writes: As opposed to

My warn command is not working discord.py

(Replit.com) I tried to use the warn command but every time i try, there is a error: TypeError: ‘Command’ object is not subscriptable The error message I get is: Answer The problem is, that aside the report dictionary, you also have a command called report, so to fix this error, simply rename either the global variable or the command. Also

Why error handling doesn’t work in repl but in VSCode it does? discord.py

I am trying to handle errors for local commands of my discord bot and I get the following error discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: ‘Command’ object has no attribute ‘MissingRequiredArgument’ this only happens when I execute the code in repl and not in VSCode.I also tried the following Answer You should send the complete code, but if I understood

Hosting discord bot through Heroku – deploy error

I am trying to host my discord bot through heroku. I’m coding with python. But I got the following error when deploying from GitHub: That was the full build log that I saw on heroku. Can anyone help? Thx Answer You should change the first line in requirements.txt to git+https://github.com/Rapptz/discord.py. Because there is no tag or branch named “rewrite”.

Advertisement