Issue
I have searched around a lot for this answer, and I haven't found it. I want to use a suggestion command, that whenever someone uses it to suggest an idea, it DMs me, and me only.
Solution
You'll have to use the send_message
method. Prior to that, you have to find which User
correspond to yourself.
@client.event
async def on_message(message):
# we do not want the bot to reply to itself
if message.author == client.user:
return
# can be cached...
me = await client.get_user_info('MY_SNOWFLAKE_ID')
await client.send_message(me, "Hello!")
Answered By - greut
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.