I've just gotten into writing discord bots. While trying to follow online instructions and tutorials, my bot would not respond to commands. It responded perfectly fine to on_message(), but no matte.
created the simplest discord bot there was a problem, the bot only responds to commands in private messages, on the server it does not react at all changed rights issued roles, 0 reactions used this code **import discord from discord.ext import commands intents = discord.Intents.default () intents.message_content = True intents = discord. I am basically trying to create a discord bot following the documentation provided by discord.py. I have added intents and access to message_content on both my developer portal and my code.
I tried to recreate as much as I could from the documentation but just am not getting any responses from the bot. Discord bot won't respond to my commands Python jemanalex99 April 30, 2023, 7:11pm 1. Discover why your Python-based Discord bot is unresponsive and learn step-by-step solutions to get it back online!
I just upgraded to development version of discord.py I fixed some things like awaited cogs loading and switched to start coroutine from run command Bot logs in alright but commands are not working. You're using discord.Client so you're not even taking commands. Use commands.Bot for commands.
But also fix your indentation. Slash commands use on_application_command_error(ctx: discord.ApplicationContext, error: discord.DiscordException) as presented in the per. Learn how to resolve issues with your Discord bot not responding, especially when using `@bot.command` in discord.py.
Follow our guide for step. I have multiple discord bots but suddenly, they all just stopped responding to my commands. I copied this code from online to see if there was a problem with my code, but this doesn't seem to work either.