Skip to main content

About

What does this config do?

The webhooks.json config is used by clients and servers to define the format of Discord webhooks. Webhooks can be used either by your client to send a webhook when YOU receive an alert, or they can be used by the server to send a webhook when a GLOBAL alert is triggered.

Webhooks use a library by n1netails if you wish to explore further.

How to use the config

Clients

Go to your pokemon.json and enable sendWebhook at the bottom of the Pokemon config you want to send a webhook for.

You should almost always use the unformatted versions of dynamic replacements on the client.

Also, anything set to DISABLED in your Pokemon's config will not work in your webhooks!

Servers

Go to your server.json and enable sendWebhook at the bottom of the config.

Once webhooks are enabled, go back to webhooks.json and insert your webhookURL.

danger

DO NOT SHARE this URL with anyone! This gives them full access to send any message they want in your server. Should they get ahold of it, threat actors can use your webhook URL to potentially send malicious messages containing scams, malware, etc.

That's it! Your webhooks will work now, but they will use the default template. If you wish to further modify this, see the options below.

Basic options

OptionDescription
configVersionDO NOT EDIT. Self-updating mod version - used to notify of important changes when updating the mod.
webhookURLThe URL to your webhook. DO NOT SHARE with anyone! See the above warning.
contentThe main message.
usernameSets the username of the webhook.
avatarURLSets the profile picture of the webhook from the specified image URL.
ttsPlays text-to-speech audio for the message.

Embeds

OptionDescription
enabledEnables the embed.
titleSets the title of the embed.
descriptionSets the description of the embed.
colorA color in decimal format. Use an online tool to help with this. You can also find some default colors here.
urlTurns the title into a hyperlink.
imageURLInserts a large image below the title and description.
thumbnailURLInserts a small image in the top right corner.
timestampInserts a timestamp of when the webhook was sent. Uses the system's local time (I think).

Embeds - Author

OptionDescription
nameThe author's name.
urlTurns the author's name into a hyperlink.
iconURLSets the icon of the author.

Embeds - Fields

OptionDescription
nameThe field's name.
valueThe field's value.
inline (true)Fits as many fields as possible on a single line.
inline (false)Treats the field as its own line.
OptionDescription
textThe footer's text.
iconURLSets the icon of the footer.