SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
688 stars 144 forks source link

403 - Forbidden : PUT error when trying to ban a member #375

Closed exatron2300 closed 1 year ago

exatron2300 commented 1 year ago

I have a 403 error when im trying to ban a member. Here is the error and here is my script: image image

broman commented 1 year ago

Does your bot have permission to ban members?

exatron2300 commented 1 year ago

Does your bot have permission to ban members

the oauth2 gives the bot all of the permissions, even tho it doesnt have a ban perms role

SinisterRectus commented 1 year ago

I don't think that code corresponds to the error you are seeing.

message.author.tag will never be equal to exatron23# so the code will never run. You're iterating over every guild member and for some reason are indexing each member with a random number, which is undefined and impossibly a member that you are somehow attempting to ban...

Please visit https://discord.gg/sinisterware since this is not a library issue.