Discord's ID System allows bot's to manage and use IDs to get/edit object data (e.g. returning user's name, deleting a role, etc).
A ID is a Discord object identifier. Let's break this down:
- A 'object' refers to a Discord channel, role, user, server/guild, etc.
- A 'identifier' (typically called 'ID') refers to the multi-digit number that the object belongs to.
In order to access and copy IDs in the Discord client, you must enable developer mode. Here's how:
For Android users, go to User Settings > App Settings > Behavior and turn on Developer Mode. For iOS you’ll head to User Settings > Appearance > Advanced and turn on Developer Mode.
Where do I find these 'IDs'?
You can use 'Functions That Return IDs' to retrieve IDs.
If you want to get IDs using your client, check out Discord's full guide on getting IDs!
There are alot of functions that use IDs. Like,
$banID, and many more.
$deleteChannels for this example. In order to delete a channel, we need the channel's ID. Here's how
$deleteChannels could look:
$deleteChannels $c[Deletes the provided custom channel ID.] $deleteChannels[$channelID] $c[Deletes the channel where the command was ran.] $deleteChannels[$mentionedChannels] $c[Deletes the mentioned channel.]
🧙♂️ Be careful not to mix up ID types. For example, you can't do
$deleteChannels[$authorID]. This is because
$authorIDreturns a user ID, not a channel ID.
- ... (a few others)
- Mentioning a User -
- Mentioning a Role -
- Mentioning a Channel -
- Using a Emoji -
- Mentioning a Guild - Guilds can't be mentioned.
🧙♂️ Non-bots can use IDs to mention objects too!