Commands
Every Relay command is a native slash command. Permissions follow Discord roles โ moderation commands require the Manage Messages permission unless overridden.
Moderation
| Command | Description | Requires |
|---|---|---|
/ban <user> | Ban a member, optionally with reason | Ban Members |
/kick <user> | Remove a member from the server | Kick Members |
/timeout <user> | Temporarily mute a member | Moderate Members |
/purge <count> | Bulk-delete recent messages | Manage Messages |
/timeout @spammer duration:10m reason:"link spam"
โ โณ Timed out @spammer for 10 minutes.Utility
| Command | Description |
|---|---|
/ping | Show gateway latency |
/userinfo | Display info about a member |
/serverinfo | Display server statistics |
/remind <when> | Schedule a reminder |
Configuration
| Command | Description | Requires |
|---|---|---|
/config view | Show the current guild settings | Manage Server |
/config set | Change a setting | Manage Server |
/plugin enable | Enable a plugin for this guild | Manage Server |
Building your own command?
Drop a file in plugins/ that exports a command definition and Relay loads
it on the next restart โ no core changes needed.
import { command } from "@fozmu/relay";
export default command({
name: "hello",
description: "Say hello",
run: (ctx) => ctx.reply(`๐ Hey, ${ctx.user.username}!`),
});