#discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access
81 messages · Page 1 of 1 (latest)
yes there is just deleted it for the example
its an int
thats not the problem
i think
does the bot have permission to register slash commands on both servers?
What's the full error code?
But now its this error
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
yeah ofc
can you share some of the code starting from line 1114?
or is it this one?
specifically, the part that starts from this code: await ctx.command.invoke(ctx)
its this one
Thats lib code thats not in my code
the problem is in this line
let me
confirm it
i think ctx.command.invoke(ctx) is wrong
cuz you are invoking the object itself
not sure 100% cuz i dont really use python
but it might be the problem
ctx.command.invoke is from Discord.py
It's not anything PPX005 wrote
the problem is here
Hmm
oh oops my bad
You're trying to DM the user?
await sender.add_roles(role) this?
sender = ctx.author
&
sender.send() ?
It's trying to send to the command author
Which will result in an error if the person has got DMs turned off
the given role must be below the bot's role
i mean u could just add print statements in each if statement xd
what for?
the code works until that await
its just something intent related
or
idk
2fa wierd discord
Yes
nvm
i solved it ty guys
as always
it was just i didnt role the bot with admin 🥵

ty tho
np