Exiled-Team / DiscordIntegration

GNU General Public License v3.0
13 stars 36 forks source link

Permission denied. #24

Closed TypicalIllusion closed 3 years ago

TypicalIllusion commented 3 years ago

When I run the bot everything is fine but when I run commands that are higher then permission 0, I get permission denied. I have the role and the role id is set up properly. Windows 10 64 bit (if this matters)

joker-119 commented 3 years ago

Could you show me what your bot's config file looks like?

Is the command a plugin based one? If so, are you sure it's the bot denying the command and not the plugin?

TypicalIllusion commented 3 years ago

the command is any command with the permission value of 1-4. {"Debug":false,"BotPrefix":"+","BotToken":"my token","Port":7777,"PermLevel1Id":768146312796569641,"Permlevel2Id":768146312796569641,"Permlevel3Id":768146312796569641,"Permlevel4Id":768146312796569641,"CommandLogChannelId":0,"GameLogChannelId":0,"AllowedCommands":{"list":0,"bc":4,"kick":4,"ban":4},"EggMode":false}

TypicalIllusion commented 3 years ago

its like it doesnt notice the role or anything

TypicalIllusion commented 3 years ago

same thing but in notepad.txt this aswell

TypicalIllusion commented 3 years ago

im still getting the "perm denied". i changed the role but that didnt work

joker-119 commented 3 years ago

It's because you have the roleID in all 4 perm levels, but it only registers the role ID for the first one that it appears in. Take it out of perm level 1 2 and 3, and it will work.

TypicalIllusion commented 3 years ago

oh alright

TypicalIllusion commented 3 years ago

another thing is, if i have perm 4 id and i have a command the requires perm 3 id, can i use perm 3 if i have the perm 4 role? or do i need to add the permission 3 role aswell

joker-119 commented 3 years ago

https://github.com/galaxy119/DiscordIntegration/blob/master/README.md

image

TypicalIllusion commented 3 years ago

alright, thanks for all the help. the bot is working