discord: add basic discord bot support
- go to discord developer portal https://discord.com/developers/applications
- make a discord application
- add a bot to that app
-- enable PRESENCE INTENT, SERVER MEMBERS INTENT, MESSAGE CONTENT INTENT (as desired)
! For websockets
t{ discord-bot-config
{ token "...from discord developer portal..." }
{ application-id "
10885523740" } ! from developer portal
{ guild-id "
1357300335" } ! from "developer mode" in discord client, right click the server and "copy id"
{ channel-id "
1089175837623" } ! from "developer mode", right click channel and "copy id"
{ permissions 2048 } ! intentions (2048 is send messages)
}
discord-connect
! For REST api
T{ discord-bot-config
{ client-id "bot id from dev portal" }
{ client-secret "from dev portal" }
}