izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 155 forks source link

Have issues with my discord bot #281

Closed WorldBalancer closed 6 years ago

WorldBalancer commented 6 years ago

Hello my discord bot get the error with too


$ node bot.js
info: Connected
info: Logged in as:
info: Honda Accord - (N/A)
error:  message=Could not remove role, stack=ResponseError: Could not remove role
    at handleResCB (C:\Users\Honda Accord\Desktop\Discord bot's\bot\node_modules\discord.io\lib\index.js:1401:10)
    at C:\Users\Honda Accord\Desktop\Discord bot's\bot\node_modules\discord.io\lib\index.js:1189:3
    at C:\Users\Honda Accord\Desktop\Discord bot's\bot\node_modules\discord.io\lib\index.js:1494:13
    at Gunzip.onError (zlib.js:116:5)
    at emitOne (events.js:116:13)
    at Gunzip.emit (events.js:211:7)
    at Gunzip.zlibOnError (zlib.js:156:8), name=ResponseError, statusCode=404, statusMessage=NOT FOUND, code=10011, message=Unknown Role
error:  message=Could not add role, stack=ResponseError: Could not add role
    at handleResCB (C:\Users\Honda Accord\Desktop\Discord bot's\bot\node_modules\discord.io\lib\index.js:1401:10)
    at C:\Users\Honda Accord\Desktop\Discord bot's\bot\node_modules\discord.io\lib\index.js:1176:3
    at C:\Users\Honda Accord\Desktop\Discord bot's\bot\node_modules\discord.io\lib\index.js:1494:13
    at Gunzip.onError (zlib.js:116:5)
    at emitOne (events.js:116:13)
    at Gunzip.emit (events.js:211:7)
    at Gunzip.zlibOnError (zlib.js:156:8), name=ResponseError, statusCode=404, statusMessage=NOT FOUND, code=10011, message=Unknown Role
WorldBalancer commented 6 years ago

and here my logs for it network.log git my npm I here https://github.com/Woor/discord.io/tree/gateway_v6

cloudrac3r commented 6 years ago

"name":"ResponseError","statusCode":404,"statusMessage":"NOT FOUND","response":{"code":10011,"message":"Unknown Role"}

It's a problem in your code. The roleID you supplied is not a valid role.

WorldBalancer commented 6 years ago

oaky