BotWiz Documentation
DashboardSupport ServerResources
BotWiz Documentation
BotWiz Documentation
  • Welcome to BotWiz!
  • Support Server
  • Dashboard
    • Get Started
    • Settings
    • BotWiz Guides
  • Creations
    • Commands
      • Builder
    • Events
      • List of Discord Events
    • Variables
      • Interaction & Default Variables
      • Custom Variables
        • Bot Variables
      • Unique Variables
      • Function Variables
      • Advanced Variables
      • Event Variables
  • Misc
    • Debugging
    • Exports
  • Blocks
    • Actions
      • Message Actions
        • Modal / Form
        • Send & Edit a Message
        • Delete & Pin a Message
        • Start & End Poll
      • Role Actions
        • Removing & Adding a Role to Everyone
        • Edit a Role
      • Channel Actions
        • Create Channel
        • Edit Channel
        • Delete Channel
        • Purge Messages
      • Member Actions
        • Ban Member
        • Kick Member
        • Member Nickname
        • Timeout Member
        • Unban Member
      • Variable Actions
        • Calculate Variable
        • Delete Variable
        • Set Variable
      • Action Blocks
        • API
        • Create & Delete an Auto Mod Rule
        • Timed & Custom Event
    • Conditions
    • Options
Powered by GitBook
On this page
  • Delete a Message
  • Pin a Message

Was this helpful?

  1. Blocks
  2. Actions
  3. Message Actions

Delete & Pin a Message

PreviousSend & Edit a MessageNextStart & End Poll

Last updated 7 months ago

Was this helpful?

In this page, both the delete message and pin message blocks will be explained. However, you must first understand what a message ID is. For starters, a message ID is a way you can refer to a specific message, and how your bot knows which message to delete or pin for example.

To find a message ID for a message that has already been sent by anyone, simply right click the message on Discord and click to copy its ID. If you do not have this option, you must visit your Discord Settings > Advanced and toggle your Developer Mode on.

For message blocks, you can refer to their 'message ID', by using the create message variable. You can find this variable in any create message block, and it will be something like {create_message_00000}. For each create message block, you can edit this variable's referance code.

Delete a Message

For each delete message block, you have the option to either state a message ID or select a message block in the builder. The difference between the two options, is that you should refer to a message ID when the message will not be sent by the bot during your current builder (e.g. command).

When using the message selector, this is an easy tool where you can easily pick any message block in your builder. Once it's selected, that message will be deleted once your block is run.

Pin a Message

Pinning a message works exactly the same as deleting a message. You can either state a message ID, or simply select a message in the builder. When pinning a message, it will show in your channel's pinned messages as shown below.

A delete message block example from a builder.
Pinned messages for a channel.