Skip to content
Discussion options

You must be logged in to vote

Bot objects are designed to be connect-once affairs. You might have to recreate it.

Also, it's a really not great idea to be reloading like this- discord affords you a limited number of connections/day, and it's pretty hefty to rebuild the cache. If you're just sending messages one-off you should look at webhooks, and if you aren't actively receiving websocket events (messages, presence events, reaction-adds, etc), you can just use the rest API without connecting a websocket, thus sidestepping this problem entirely.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Rapptz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants