Skip to content
Discussion options

You must be logged in to vote

In v1.7 you need to fetch the user first:

user = bot.get_user(user_id) or await bot.fetch_user(user_id)
await user.send('whatever')

In the future in v2.0 (still in development) you'll be able to open a DM directly via user ID:

dm = await client.create_dm(user_id)
await dm.send('whatever')

Replies: 1 comment 1 reply

Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants