Custom Command
FunctionsChannel Functions

$clear

Clears messages from a channel. You can clear messages from a specific user, or clear all messages in the channel.

Usage:

$clear[amount;userID or everyone (optional);channelID (optional);skip pinned messages (optional)]

Parameters:

  • amount: The number of messages to clear (maximum 100).
  • userID (optional): The ID of the user whose messages you want to clear. If omitted, or set to everyone, all messages will be cleared.
  • channelID (optional): The ID of the channel to clear messages from. If omitted, the current channel is used.
  • skip pinned messages (optional): default is 'no' Example:

Before:

Member
9/5/2026

I'm a spammer, everyone shut up!

Member
9/5/2026

I'm a spammer, everyone shut up!

Member
9/5/2026

I'm a spammer, everyone shut up!

Member
9/5/2026

I'm a spammer, everyone shut up!

Member
9/5/2026

I'm a spammer, everyone shut up!

Member
9/5/2026

I'm a spammer, everyone shut up!

Member
9/5/2026

!!exec $clear[10;everyone] $sendMessage[Channel has been purged]

After:

Custom Command
APP
9/5/2026
Channel has been purged.

You can clear a maximum of 100 messages at a time. Messages older than 2 weeks cannot be cleared.

Function Difficulty: Medium

Function Cooldown

This function has built-in cooldown. Why? Read more about cooldowns here.

  • Cooldown: 4 minutes
  • Tracked By: Server
  • Type: clear

Functions with the same type share cooldowns based on the same Tracked By value.

On this page