Skip to main content

Message functions

  • {messageId}: Returns the current message ID

    • Example result: 1
  • {messageContent}: Returns the message content.

Code injection

This can be used to insert new functions which then are executed! Use {args} instead.

  • Example result: test

  • {messageAttachment}: Returns the attachment with the given index

    • Arguments:
      • index = 0
    • Example result: test
  • {messageType}: Displays the internal message type ID

    • Example result: 0
  • {messageTypeText}: Displays the human-friendly version of the message type

    • Example result: Default
  • {messageUrl}: Returns a Discord message URL

    • Arguments:
      • msg = message.id
      • channel = message.channel.id
      • guild = message.guild.id
    • Example result: https://discord.com/channels/3/2/1
  • {mentionsEveryone}: Returns whether the message mentions everyone or here

    • Example result: true
  • {react}: Reacts on a message with the given emoji

    • Arguments:
      • emoji = "701366957655719936"
    • Example result: <empty>
  • {pin}: Pins a message

    • Arguments:
      • msgId = message.id
    • Example result: <empty>
  • {unpin}: Unpins a message

    • Arguments:
      • msgId = message.id
    • Example result: <empty>
  • {target}: Returns the first mentioned user. Falls back to the message author if no user is mentioned.

    • Example result: 1
  • {suppressOriginalEmbeds}: Supresses the embeds of the message triggering the action

    • Example result: <empty>