WebMar 16, 2024 · 1 Answer. Because discord.Bot doesn't support prefix commands which is what add_command () is trying to make. What you'd want to do is use commands.Bot instead, commands being imported via from discord.ext import commands. You didn't read the question properly. WebOct 28, 2024 · Bot commands and events not working/responding *FIX* (Discord Bot Maker) DeadParticles 366 subscribers Subscribe 300 27K views 2 years ago A lot of peoples bots probably might …
[Discord.py] Command not working : learnpython
WebOct 30, 2024 · 1 Answer Sorted by: 3 on_message event blocks other commands. If you want to prevent this, you should process commands with await bot.process_commands (message) @bot.event async def on_message (message): for badword in message.content.lower ().split (): if badword in badwordslist: await … WebOct 20, 2024 · So if I have implemented bot.event, bot.command doesn't work but if I comment or remove bot.event, bot.command works fine. # bot.py import os from discord.ext import commands from dotenv import load_dotenv load_dotenv () TOKEN = os.getenv ('DISCORD_TOKEN') bot = commands.Bot (command_prefix='dedmu ') … initial red christmas stockings
Discord.py, bot.event works but not bot.command
WebMar 18, 2024 · Also about the all bots not responding, check is your bots have message intents (and your code). You should make a slash command btw. – BrainFl Mar 18, 2024 at 10:56 Add a comment -1 It because of Message Intent. Your bot … WebDec 2, 2024 · Add bot.process_commands when using on_message Why does on_message make my commands stop working? Overriding the default provided on_message forbids any extra commands from running. To fix this, add a bot.process_commands (message) line at the end of your on_message. For example: WebThe slash command is not working on any server. I've had some problems with not my bot but other bots. For every bot command I use for any other bot, the / doesn't show … initial reference list apa style