#discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access

81 messages · Page 1 of 1 (latest)

neon axle
#

pretty sure the guild ids need to be int and not string

swift arrow
#

Did you actually add in a guild ID?

#

And, yeah, guild ID's are integers

neon axle
cloud wadi
cloud wadi
#

thats not the problem

#

i think

swift arrow
#

Does it have the quotes around it?

#

Or not?

cloud wadi
#

no

#

🤦‍♂️

neon axle
#

does the bot have permission to register slash commands on both servers?

cloud wadi
#

yes it does

#

wait i think ik whats wrong

#

brb

#

no

#

k

#

that wasnt the problem

swift arrow
#

What's the full error code?

cloud wadi
#

But now its this error

#

discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

neon axle
#

what is the command trying to do?

#

can you share the code of the command itself?

cloud wadi
#

yeah ofc

neon axle
#

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)

cloud wadi
#

its this one

#

Thats lib code thats not in my code

#

the problem is in this line

#

let me

#

confirm it

neon axle
#

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

swift arrow
cloud wadi
#

its not thats lbrary code

#

await sender.add_roles(role)

swift arrow
#

It's not anything PPX005 wrote

cloud wadi
#

the problem is here

swift arrow
#

Hmm

neon axle
#

oh oops my bad

swift arrow
#

You're trying to DM the user?

cloud wadi
#

dw

#

no

#

its trying to add the role

#

once the user has completed the captcha

neon axle
#

await sender.add_roles(role) this?

swift arrow
#

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

cloud wadi
#

await sender.add_roles(role)

#

is the error

#

not sender send

#

sender add roles

neon axle
#

the given role must be below the bot's role

cloud wadi
#

It is dw

#

I wouldnt have opened a ticket

#

"ticket"

neon axle
#

i mean u could just add print statements in each if statement xd

cloud wadi
#

what for?

#

the code works until that await

#

its just something intent related

#

or

#

idk

#

2fa wierd discord

neon axle
#

oh nvm

#

does the bot have all of these intents?

GUILDS 
GUILD_MEMBERS 
DIRECT_MESSAGES
cloud wadi
#

Yes

#

nvm

#

i solved it ty guys

#

as always

#

it was just i didnt role the bot with admin 🥵

neon axle
#

bruh

#

xD

#

ok glad u solved it

cloud wadi
#

ty tho

neon axle
#

np