Webhook

Send a message to your discord server using web hooks.

Create a discord webhook

  • First, click the settings icon next to a channel you would like the messages sent to.

  • Click integrations.

  • Click webhooks.

  • Click new webhook.

  • Click copy url.

This is the url you will use in the configuration file to send a message to this channel.

Create a message

Here are all the possible options for creating a message to send to the discord channel. Any option can be removed.

discord_webhook:
  url: "url"
  message:
    username: "<player>"
     avatar: "https://crafatar.com/avatars/<uuid>?overlay"
     message: "Hello there!"
  embed:
    color: 0x00FF00
    title:
      message: "Title"
      url: "url"
    description: "Description"
    footer:
      message: "Footer"
      icon: "url"
    author:
      name: "Smudge"
      iconUrl: "url"
      url: "url"
    imageUrl: "url"
    thumbnailUrl: "url"

You can use this in some Command Types and Events

Staff Chat Example
staffchat:
  type: "chat"
  name: "staffchat"
  aliases: [ "sc" ]
  permission: "leaf.staffchat"
  log: true
  format: "&6&l| &r{server_formatted}&r &f<player>&r &7: {vanish_colour}%message%"
  # Discord webhook.
  discord_webhook:
    url: "url"
    message:
      username: "<player>"
      avatar: "https://crafatar.com/avatars/<uuid>?overlay"
    embed:
      color: 0xFFFFFF
      title:
        message: "%message%"
      footer:
        message: "Staff Chat"

Current Compatible Command Types

  • Alert (Placeholder = %message%)

  • Alert Message (Placeholder = %message%)

  • Report (Placeholder = %message%)

  • Chat (Placeholder = %message%)

Current Compatible Events

  • All Events

  • PlayerChat (Placeholder = %message%)