Saltearse al contenido
sern

Plugins

Esta página aún no está disponible en tu idioma.

1
// This plugin only allows users with '182326315813306368' as their id to use this command.
2
import { CommandControlPlugin, CommandType, controller } from "@sern/handler";
3
import type { ModalSubmitInteraction } from "discord.js";
4
5
const OWNER = '182326315813306368';
6
export function ownerOnly() {
7
return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
8
if(ctx.user === OWNER)
9
return controller.next()
10
return controller.stop()
11
})
12
}