abobija / esp-discord

C library for making Discord Bots :robot: on the ESP32, packaged as ESP-IDF component
MIT License
50 stars 5 forks source link

error: discord 4014 #6

Closed DBraspberrypi closed 8 months ago

DBraspberrypi commented 1 year ago

tried to run the example code echo but resulting in a 4014 error from discord due to "disallowed intents" even though the bot has been given admin rights

W (239053) TRANSPORT_WS: esp_transport_ws_poll_connection_closed: unexpected data readable on socket=54 W (239053) WEBSOCKET_CLIENT: Connection terminated while waiting for clean TCP close E (239713) DISCORD: dc_task: Connection closed (code=4014, desc=Disallowed intent(s).) I (239713) DISCORD: dc_task: Restarting discord in 10 sec...

mstcgalis commented 1 year ago

hi, i just got the exact same error, did you manage to figure it out?

mstcgalis commented 1 year ago

read the Discord Gateway docs and it turns out toggling these options on will make privileged intents work :)

Screenshot 2023-05-23 at 19 10 33

i think this issue can be closed.

abobija commented 1 year ago

@mstcgalis thanks for the investigation and posting the fix here