Discord Bot Projects
  • Project Fatal
  • Where to begin?
  • QnA
  • Troubleshooting
  • Commands
    • Moderation
      • Autokick
      • Autorole
      • Ban
      • Kick
      • Clear
      • Lock
        • Unlock
      • Lockdown
        • Lift-Lockdown
    • Fun
      • Coinflip
      • pp
      • Simprate
      • Waifurate
      • Gayrate
      • Ship
      • Cuddle
      • Kiss
      • 8ball
      • Meme
      • Tease
      • Compatible
      • Garbage
      • Slap
      • Tweet
      • TruthorDare
      • Economy
        • Economy Give
        • Economy Shop
        • Economy Daily
        • Economy Work
        • Economy Inventory
        • Economy Purchase
        • Economy Balance
    • Loggings
      • Channels
      • Roles
      • Bans
      • Join/Leave
    • Music
    • Misc
      • Modulepanel
      • Level Rank
      • Ping
      • Botinfo
      • Serverinfo
      • Report
      • Avatar
      • Leveling
        • Leveling Rank
        • Leveling addXP
        • Leveling addLevel
        • Leveling removeXP
        • Leveling removeLevel
    • Games
      • Youtube
      • ttt
      • Chess
    • Random Pictures
      • Bird
      • Bunny
      • Cat
      • Dog
      • Kitten
      • Panda
      • Puppy
      • Squirrel
      • Zerotwo
    • Notes
  • Fatal Information
    • Change log
    • Terms of Service
    • Document Contributors
Powered by GitBook
On this page
  1. Commands
  2. Moderation

Clear

Clear messages from a channel Requires the "Manage Messages" permission to use.

PreviousKickNextLock

Last updated 2 years ago

The user is required to input the amount of messages they want to clear, if they don't, they cannot run the command.

The user will not be able to purge more than 100 messages at once nor will they be able to purge messages older than 14 days, (the 14 day message thing is a Discord limitation if you try and purge the messages nothing will happen) if you attempt to clear more than 100 messages at once, the bot will throw an error message.

You are not able to purge less than 1 message if you attempt to do that the bot will throw an error message.

If the user executes the command without the correct permissions the bot will return an error and fail to purge.