idfor
Outputs the ID for a given Discord user, role, channel, or emoji. Usage: !idfor <emoji, channel, or user/role mention> This tag is an updated version of the "getid" tag by Asty', this tag fixes the bug causing the tag not to output the ID for an emoji, and expands the functionality to include roles. Special thanks to Niloc (and the rest of the Carl Bot Help server) Original tag by Asty': (https://carl.gg/t/120698) GitHub: https://github.com/DJStompZone/
Privateunrated
Content
17 lines{=(uid):{replace(!,):{replace(<@,):{replace(>,):{args}}}}}
{=(rid):{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, a role, or a user for me to give you its ID.
Usage: `[p]idfor [channel - emoji - role - user mention]`}
{=(COMMENT):Checks.}
{=(rolec):{if({in(&):{1}}==true):true|false}}
{=(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}}
{=(output):{if({args(1)}==):{error}|{if({rolec}==true):{rid}|{if({userc}==true):{uid}|{if({chanc}==true):{chanid}|{if({emoc}==true):{replace(>,):{args(3)::}}|{error}}}}}}}
{output}Raw JSON
{
"id": 1078447,
"created_at": "2021-09-26T02:58:58.000Z",
"tag_name": "idfor",
"nsfw": false,
"owner_id": "269249777185718274",
"uses": 34,
"description": "Outputs the ID for a given Discord user, role, channel, or emoji. \nUsage: !idfor <emoji, channel, or user/role mention> \n\nThis tag is an updated version of the \"getid\" tag by Asty', this tag fixes the bug causing the tag not to output the ID for an emoji, and expands the functionality to include roles. \nSpecial thanks to Niloc (and the rest of the Carl Bot Help server) \n\nOriginal tag by Asty':\n(https://carl.gg/t/120698) \n\nGitHub:\nhttps://github.com/DJStompZone/",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "599808270655291403",
"sharer": "269249777185718274",
"content": "{=(uid):{replace(!,):{replace(<@,):{replace(>,):{args}}}}}\n{=(rid):{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, a role, or a user for me to give you its ID.\nUsage: `[p]idfor [channel - emoji - role - user mention]`}\n\n{=(COMMENT):Checks.}\n{=(rolec):{if({in(&):{1}}==true):true|false}}\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\n{=(output):{if({args(1)}==):{error}|{if({rolec}==true):{rid}|{if({userc}==true):{uid}|{if({chanc}==true):{chanid}|{if({emoc}==true):{replace(>,):{args(3)::}}|{error}}}}}}}\n{output}",
"embed": "{}",
"last_fetched": "2026-10-20T17:41:33.540Z"
}