Skip to content

Instantly share code, notes, and snippets.

@Dr-Insanity
Last active September 11, 2021 19:54
Show Gist options
  • Save Dr-Insanity/604c8177532e34b1a72a1f26c77fd650 to your computer and use it in GitHub Desktop.
Save Dr-Insanity/604c8177532e34b1a72a1f26c77fd650 to your computer and use it in GitHub Desktop.
.

Formatting over webhooks

Here's a little gist to help you mention people, mention channels, mention roles, use code blocks, use spoilers, emoji's, custom emoji's and custom animated emoji's

note:
These are all examples

Mentioning a user

Get the discord user's ID. Then, you can ping a user like so:

<@12345678910>

Mentioning a channel

Get the channel's ID. Then, you can ping the channel like so:

<#12345678910>

Code blocks

Very easy! Simply:

``` ```

Spoilers

Like you would do normally, like this:

||Text goes here||

a little extra for spoilers:
You can hide embedded URL's like this:

https://ThisURLHasMetadata.nice-example.show/EmbedPowers

Emoji's - normal

Very simple:

:flushed: # which is the 😳 emoji

Emoji's - custom

  • Get the emoji's ID by typing \:TheEmojiName: in the chat. And send.

    if that didn't work, try to log into discord on a webbrowser, like Chrome, Firefox, Edge


Once you got the ID, you can send an Emoji over a webhook's message like so:

<:NameOfTheEmoji:ID>

Emoji's - custom & animated

  • Get the emoji's ID by typing \:TheEmojiName: in the chat. And send.

    if that didn't work, try to log into discord on a webbrowser, like Chrome, Firefox, Edge


Once you got the ID, you can send an Emoji over a webhook's message like so:

<:a:EmojiName:ID>

That's all!

I hope this was of good use to you. Now get out there and flex with your webhooking powers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment