PaulCLI logoPaulCLI

Using it on Discord

How slash commands execute and fail safely.

Members run commands from Discord’s slash command picker. For chat-input commands, interactionCreate finds the command by interaction.commandName, checks the per-guild GuildCommand row, and then calls the command’s execute function. Missing rows are treated as enabled.

Many commands are server-only and reply ephemerally if used outside a guild. Economy commands also check whether the economy module is enabled for the server before reading or changing balances. Levels commands require the leveling config to exist and be enabled.

Moderation commands generally defer with ephemeral replies, perform validation, create a moderation case, and return an embed with the case number. Those cases can also feed the Logging module when moderation logging is enabled.

Examples

/purge amount:25 target:@member scans up to 25 recent messages in the channel and deletes matching, unpinned, under-14-day messages. /giveaway start prize:"Nitro" duration:1d winners:2 creates a giveaway and returns the stored giveaway ID ephemerally.