This command needs admin privileges.
This command needs admin privileges.
The system is rejecting your request due to permission issues. It appears you need admin privileges to send messages in certain channels. Even though you’ve assigned the role, it might not have the required access level. Double-check your role assignment and ensure it includes the necessary permissions.
This seems to be related to Python code for a Discord bot. The link points to a Stack Overflow discussion about sending messages from an administrator to a Discord channel.
@Eigenvektor ja, tut Python, Discord bot Beispiel: -------------------------------------------------------------------------- @bot.event async def on_message(message): if message.author == bot.user: # Ignore self-generated messages return if content starts with '$hello': await message.channel.send('Hello to you too!') if message.content.startswith('$inspire'): await message.channel.send(get_quote()) # Send quote for every post, check if it's first result=await set_to_prospect_roles_on_first(message) if result is not None: print("Sending, " + result) try: await message.channel.send(result) except Exception as e: print("Failed to send response, " + str(e)) -------------------------------------------------------------------------- Some channel sends are failing, missing permissions. Unless I assign admin role it works. Think I might be missing something and shouldn't need admin. Note: Also tried message.reply but that requires admin too.