Create DM Channel
On this page
Create a DM channel with a user. If you run the block several times with the same user ID inputted, it will always return the same channel. If a user initiates a DM with the bot, it will also have the same Channel ID.
You should not use this endpoint to send a large number of DMs. DMs should always be initiated by a user action. If you open a significant amount of DMs too quickly, your bot may be rate limited, banned, or blocked from using DMs by Discord.
Inputs
User ID Required
The ID of the user you would like to create a DM channel with.
The receiving user needs to have DMs enabled in Discord privacy settings.
Example: 123456789012345678
Outputs
Channel ID
The ID of the created channel
Example: 123456789012345678