Replies: 1 comment
-
Could you put the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a seemingly easy question but I can't seem to find a solution for it.
Basically I want to use discord.py to login to an account, then use the discord client in another function. In this case, I use
send_message()
to get a discord user by their ID and send them a message. Code below:When I run this python file in my python shell, it would print the "Logged in as ..." success message and it would hang up. It wouldn't let me type any other command. I want to run
send_message(...)
but I cannot.In this case, how do I run
send_message(...)
after runningclient.run(...)
?Beta Was this translation helpful? Give feedback.
All reactions