SinisterRectus / Discordia

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

getRole issue #268

Closed NougatBitz closed 3 years ago

NougatBitz commented 3 years ago

getRole(766799441310908466)

just errors and says that the URL is invalid...

SinisterRectus commented 3 years ago

It should be a string. Try "766799441310908466".

NougatBitz commented 3 years ago

omg, i legit Spent multiple Hours trying to find the issue, tysm!

NougatBitz commented 3 years ago

Uhh, now it says:

2020-10-18 02:00:56 | [ERROR] | 403 - Forbidden : PUT https://discord.com/api/v7/guilds/759149557383954434/members/674631775913377812/roles/766799441310908466

SinisterRectus commented 3 years ago

It says forbidden. That means the bot doesn't have permission to add the role.