Skip to content
Discussion options

You must be logged in to vote

You cannot call methods across event loops like this. Every new thread spawns a new event loop. Instantiating each client in the thread will make things easier for you.

That aside, your code has many bad practices, and I recommend starting with a simpler project (not involving Discord or a complicated async library) to get yourself familiarized with Python better. You may also want to reassess whether you need a user account to accomplish what you're trying to do, as invites can be easily fetched by regular bots.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@TheOnlyWayUp
Comment options

Comment options

You must be logged in to vote
2 replies
@5t0n1e
Comment options

@dolfies
Comment options

Answer selected by dolfies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants