You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was making a bot that fetch user information through user id and my code is as follows:
import discord
from discord.ext import commands
client = commands.Bot(command_prefix="!", self_bot = True)
@client.event()
async def on_ready():
print("I'm online")
@client.commands()
async def fetch(ctx , id):
await client.fetch_user(id)
## rest of the code
After I run the command i got error
⚠️ || Command raised an exception: Forbidden: 403 Forbidden (error code: 40001): Unauthorized!
I think it's related to discord intents , any fixes?
Beta Was this translation helpful? Give feedback.
All reactions