Skip to content

Instantly share code, notes, and snippets.

@Jaysok
Last active December 8, 2022 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaysok/4670867ace17b4db6a4e4e6d3942cfec to your computer and use it in GitHub Desktop.
Save Jaysok/4670867ace17b4db6a4e4e6d3942cfec to your computer and use it in GitHub Desktop.

Referrering Objects from Discord

https://discord.com/developers/docs/reference#message-formatting-formats

User

<@user_id>

Channel

<#channel_id>

Threads also can be referred by

<#thread_id>

Roles

<#&role_id>

Server Emoji

<:emoji_name:emoji_id>

Tip: Type \:<your icon name>: in your server. Let's you have an emoji with crying pepe. Then just type \:cryping_pepe: and you will see things like <:cryping_pepe:1040525177789874206>. You you use it as a whole. Just try copy and past it to the chat.

Timestamp

Use <t:TIMESTAMP:FLAG> to send it

Available flags:

t: Short time (e.g 9:41 PM)
T: Long Time (e.g. 9:41:30 PM)
d: Short Date (e.g. 30/06/2021)
D: Long Date (e.g. 30 June 2021)
f (default): Short Date/Time (e.g. 30 June 2021 9:41 PM)
F: Long Date/Time (e.g. Wednesday, June, 30, 2021 9:41 PM)
R: Relative Time (e.g. 2 months ago, in an hour)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment