Skip to content
Discussion options

You must be logged in to vote

The intended way of getting the DM between the client and a user is client.get_user(USER_ID).dm_channel. A DM's channel ID is not the same as one of the user's IDs.

The docs for User.dm_channel explains its return type and what to do if it returns None.

Replies: 1 comment 2 replies

Comment options

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

@yojc
Comment options

Answer selected by yojc
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