id

Privateunrated

Content

48 lines
{=():}
{=(uid):{replace(!,):{replace(<@,):{replace(&,):{replace(>,):{args}}}}}}
{=(chanid):{replace(<#,):{replace(>,):{args}}}}
{=(spacemo):{replace(, ):{1}}}
{=(eid2):{replace(>,):{join():{spacemo(0+)::}}}}

{=(error):You need to mention a channel, an emoji or a user for me to give you its ID.
Usage: `-id [channel  emoji  user mention]`
You can also use -id [server channel user message role category emoji] to see how to get other discord ids manually.}

{{if({args(1)}==):c:cembed {channel(id)} {"description":"For a video explaining this [click here](https://youtu.be/6dqYctHmazc)","image":{"url":"https://i.imgur.com/l125s92.gif"},"author":{"name":"Head to User Settings > Advanced > enable Developer Mode > click on a users profile > Copy ID","url":"https://youtu.be/6dqYctHmazc"},"color":785163,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids. You can also mention a channel, emoji or user for me to give you its ID."}}}}

{{if({args(1)}==server):c:cembed {channel(id)} {"description":"> Right click the server icon or server title bar and select \"Copy ID\"","image":{"url":"https://i.imgur.com/eltRx34.gif"},"author":{"name":"Server IDs"},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{{if({args(1)}==channel):c:cembed {channel(id)} {"description":"Channel: <#ID> like `<#764714499596746803>` = <#764714499596746803>\n> Right click the channel and select \"Copy ID\"","image":{"url":"https://i.imgur.com/9j2sM8r.gif"},"author":{"name":"Channel IDs","url":""},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{{if({args(1)}==user):c:cembed {channel(id)} {"description":"User: <@ID> like `<@502114217219063809>` = <@502114217219063809>\n> Right click the user and select \"Copy ID\"","image":{"url":"https://i.imgur.com/bzVJYVG.gif"},"author":{"name":"User IDs","url":""},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{{if({args(1)}==message):c:cembed {channel(id)} {"description":"> Click the  ⋮  at the top right of the message and select \"Copy ID\"","image":{"url":"https://i.imgur.com/vY8bO3z.gif"},"author":{"name":"Message IDs","url":""},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{{if({args(1)}==role):c:cembed {channel(id)} {"description":"Role: <@&ID> like `<@&764721588260044820>` = <@&764721588260044820>\n>>> Right click the role in the server's role menu and select \"Copy ID\" \nor use the -role info command followed by the role.","image":{"url":"https://i.imgur.com/vpnfYK6.gif"},"author":{"name":"Role IDs","url":""},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{{if({args(1)}==category):c:cembed {channel(id)} {"description":"> Right click the category and select \"Copy ID\"","image":{"url":"https://i.imgur.com/V1a6yqX.gif"},"author":{"name":"Category IDs","url":""},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{{if({args(1)}==emoji):c:cembed {channel(id)} {"description":"Emoji: <:name:ID> like `<:YEET:454438716610707456>` = <:YEET:454438716610707456>\n> Type or select the emoji, insert a `\\` in front of it & press Send.","image":{"url":"https://i.imgur.com/iVUe5o0.gif"},"author":{"name":"Emoji IDs","url":""},"color":4886754,"footer":{"text":"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids."}}}}

{=(COMMENT):Checks.}
{=(userc):{if({in(@):{1}}==true):true|false}}
{=(chanc):{if({in(<#):{1}}==true):true|false}}
{=(emoc):{any({in(<:):{1}}==true|{in(<a:):{1}}==true):true|false}}
{=(idcheck):{if({index(&$):{replace(, ):{list(0):{join(~):{args}}}} &$}==18):true|false}}

{=(COMMENT):Convert ID to binary, shift bits to the right 22 times, convert back to decimal.}
{=(id):{1}}
{=(decimal):{if({index(&$):{replace(, ):{list(0):{join(~):{args}}}} &$}==18):{m:trunc({id}/2^22)%2*2^0+trunc({id}/2^23)%2*2^1+trunc({id}/2^24)%2*2^2+trunc({id}/2^25)%2*2^3+trunc({id}/2^26)%2*2^4+trunc({id}/2^27)%2*2^5+trunc({id}/2^28)%2*2^6+trunc({id}/2^29)%2*2^7+trunc({id}/2^30)%2*2^8+trunc({id}/2^31)%2*2^9+trunc({id}/2^32)%2*2^10+trunc({id}/2^33)%2*2^11+trunc({id}/2^34)%2*2^12+trunc({id}/2^35)%2*2^13+trunc({id}/2^36)%2*2^14+trunc({id}/2^37)%2*2^15+trunc({id}/2^38)%2*2^16+trunc({id}/2^39)%2*2^17+trunc({id}/2^40)%2*2^18+trunc({id}/2^41)%2*2^19+trunc({id}/2^42)%2*2^20+trunc({id}/2^43)%2*2^21+trunc({id}/2^44)%2*2^22+trunc({id}/2^45)%2*2^23+trunc({id}/2^46)%2*2^24+trunc({id}/2^47)%2*2^25+trunc({id}/2^48)%2*2^26+trunc({id}/2^49)%2*2^27+trunc({id}/2^50)%2*2^28+trunc({id}/2^51)%2*2^29+trunc({id}/2^52)%2*2^30+trunc({id}/2^53)%2*2^31+trunc({id}/2^54)%2*2^32+trunc({id}/2^55)%2*2^33+trunc({id}/2^56)%2*2^34+trunc({id}/2^57)%2*2^35+trunc({id}/2^58)%2*2^36+trunc({id}/2^59)%2*2^37+trunc({id}/2^60)%2*2^38+trunc({id}/2^61)%2*2^39+trunc({id}/2^62)%2*2^40+trunc({id}/2^63)%2*2^41}}}

{=(COMMENT):Convert decimal to unix timestamp in seconds.}
{=(discord_epoch):1420070400000}
{=(timestamp):{m:trunc(({decimal}+{discord_epoch})/1000)}}

{=(COMMENT):Return result in different formats.}
{=(idt):{strf({timestamp}):%-d %B %Y %T UTC}
{td:{timestamp}}
<t:{timestamp}:R>}

{=(output):{if({userc}==true):`{uid}`|{if({chanc}==true):`{chanid}`|{if({emoc}==true):`{args(1)}`|{if({idcheck}==true):{idt}|{error}}}}}}

{{and({args(1)}!=|{contains({args(1)}):server channel user message role category emoji}==false):output}}
Raw JSON
{
  "id": 1023221,
  "created_at": "2021-08-23T06:24:10.000Z",
  "tag_name": "id",
  "nsfw": false,
  "owner_id": "761834680395497484",
  "uses": 2,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "655780171496030240",
  "sharer": "538352367654141952",
  "content": "{=():}\n{=(uid):{replace(!,):{replace(<@,):{replace(&,):{replace(>,):{args}}}}}}\n{=(chanid):{replace(<#,):{replace(>,):{args}}}}\n{=(spacemo):{replace(, ):{1}}}\n{=(eid2):{replace(>,):{join():{spacemo(0+)::}}}}\n\n{=(error):You need to mention a channel, an emoji or a user for me to give you its ID.\nUsage: `-id [channel  emoji  user mention]`\nYou can also use -id [server channel user message role category emoji] to see how to get other discord ids manually.}\n\n{{if({args(1)}==):c:cembed {channel(id)} {\"description\":\"For a video explaining this [click here](https://youtu.be/6dqYctHmazc)\",\"image\":{\"url\":\"https://i.imgur.com/l125s92.gif\"},\"author\":{\"name\":\"Head to User Settings > Advanced > enable Developer Mode > click on a users profile > Copy ID\",\"url\":\"https://youtu.be/6dqYctHmazc\"},\"color\":785163,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids. You can also mention a channel, emoji or user for me to give you its ID.\"}}}}\n\n{{if({args(1)}==server):c:cembed {channel(id)} {\"description\":\"> Right click the server icon or server title bar and select \\\"Copy ID\\\"\",\"image\":{\"url\":\"https://i.imgur.com/eltRx34.gif\"},\"author\":{\"name\":\"Server IDs\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{{if({args(1)}==channel):c:cembed {channel(id)} {\"description\":\"Channel: <#ID> like `<#764714499596746803>` = <#764714499596746803>\\n> Right click the channel and select \\\"Copy ID\\\"\",\"image\":{\"url\":\"https://i.imgur.com/9j2sM8r.gif\"},\"author\":{\"name\":\"Channel IDs\",\"url\":\"\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{{if({args(1)}==user):c:cembed {channel(id)} {\"description\":\"User: <@ID> like `<@502114217219063809>` = <@502114217219063809>\\n> Right click the user and select \\\"Copy ID\\\"\",\"image\":{\"url\":\"https://i.imgur.com/bzVJYVG.gif\"},\"author\":{\"name\":\"User IDs\",\"url\":\"\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{{if({args(1)}==message):c:cembed {channel(id)} {\"description\":\"> Click the  ⋮  at the top right of the message and select \\\"Copy ID\\\"\",\"image\":{\"url\":\"https://i.imgur.com/vY8bO3z.gif\"},\"author\":{\"name\":\"Message IDs\",\"url\":\"\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{{if({args(1)}==role):c:cembed {channel(id)} {\"description\":\"Role: <@&ID> like `<@&764721588260044820>` = <@&764721588260044820>\\n>>> Right click the role in the server's role menu and select \\\"Copy ID\\\" \\nor use the -role info command followed by the role.\",\"image\":{\"url\":\"https://i.imgur.com/vpnfYK6.gif\"},\"author\":{\"name\":\"Role IDs\",\"url\":\"\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{{if({args(1)}==category):c:cembed {channel(id)} {\"description\":\"> Right click the category and select \\\"Copy ID\\\"\",\"image\":{\"url\":\"https://i.imgur.com/V1a6yqX.gif\"},\"author\":{\"name\":\"Category IDs\",\"url\":\"\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{{if({args(1)}==emoji):c:cembed {channel(id)} {\"description\":\"Emoji: <:name:ID> like `<:YEET:454438716610707456>` = <:YEET:454438716610707456>\\n> Type or select the emoji, insert a `\\\\` in front of it & press Send.\",\"image\":{\"url\":\"https://i.imgur.com/iVUe5o0.gif\"},\"author\":{\"name\":\"Emoji IDs\",\"url\":\"\"},\"color\":4886754,\"footer\":{\"text\":\"Use -id [server|channel|user|message|role|category|emoji] to see how to get other discord ids.\"}}}}\n\n{=(COMMENT):Checks.}\n{=(userc):{if({in(@):{1}}==true):true|false}}\n{=(chanc):{if({in(<#):{1}}==true):true|false}}\n{=(emoc):{any({in(<:):{1}}==true|{in(<a:):{1}}==true):true|false}}\n{=(idcheck):{if({index(&$):{replace(, ):{list(0):{join(~):{args}}}} &$}==18):true|false}}\n\n{=(COMMENT):Convert ID to binary, shift bits to the right 22 times, convert back to decimal.}\n{=(id):{1}}\n{=(decimal):{if({index(&$):{replace(, ):{list(0):{join(~):{args}}}} &$}==18):{m:trunc({id}/2^22)%2*2^0+trunc({id}/2^23)%2*2^1+trunc({id}/2^24)%2*2^2+trunc({id}/2^25)%2*2^3+trunc({id}/2^26)%2*2^4+trunc({id}/2^27)%2*2^5+trunc({id}/2^28)%2*2^6+trunc({id}/2^29)%2*2^7+trunc({id}/2^30)%2*2^8+trunc({id}/2^31)%2*2^9+trunc({id}/2^32)%2*2^10+trunc({id}/2^33)%2*2^11+trunc({id}/2^34)%2*2^12+trunc({id}/2^35)%2*2^13+trunc({id}/2^36)%2*2^14+trunc({id}/2^37)%2*2^15+trunc({id}/2^38)%2*2^16+trunc({id}/2^39)%2*2^17+trunc({id}/2^40)%2*2^18+trunc({id}/2^41)%2*2^19+trunc({id}/2^42)%2*2^20+trunc({id}/2^43)%2*2^21+trunc({id}/2^44)%2*2^22+trunc({id}/2^45)%2*2^23+trunc({id}/2^46)%2*2^24+trunc({id}/2^47)%2*2^25+trunc({id}/2^48)%2*2^26+trunc({id}/2^49)%2*2^27+trunc({id}/2^50)%2*2^28+trunc({id}/2^51)%2*2^29+trunc({id}/2^52)%2*2^30+trunc({id}/2^53)%2*2^31+trunc({id}/2^54)%2*2^32+trunc({id}/2^55)%2*2^33+trunc({id}/2^56)%2*2^34+trunc({id}/2^57)%2*2^35+trunc({id}/2^58)%2*2^36+trunc({id}/2^59)%2*2^37+trunc({id}/2^60)%2*2^38+trunc({id}/2^61)%2*2^39+trunc({id}/2^62)%2*2^40+trunc({id}/2^63)%2*2^41}}}\n\n{=(COMMENT):Convert decimal to unix timestamp in seconds.}\n{=(discord_epoch):1420070400000}\n{=(timestamp):{m:trunc(({decimal}+{discord_epoch})/1000)}}\n\n{=(COMMENT):Return result in different formats.}\n{=(idt):{strf({timestamp}):%-d %B %Y %T UTC}\n{td:{timestamp}}\n<t:{timestamp}:R>}\n\n{=(output):{if({userc}==true):`{uid}`|{if({chanc}==true):`{chanid}`|{if({emoc}==true):`{args(1)}`|{if({idcheck}==true):{idt}|{error}}}}}}\n\n{{and({args(1)}!=|{contains({args(1)}):server channel user message role category emoji}==false):output}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T17:26:33.517Z"
}