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.2import { CommandControlPlugin, CommandType, controller } from "@sern/handler";3import type { ModalSubmitInteraction } from "discord.js";4 5const OWNER = '182326315813306368';6export function ownerOnly() {7 return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {8 if(ctx.user === OWNER)9 return controller.next()10 return controller.stop()11 })12}