Yurba.js Documentation
    Preparing search index...

    Interface CommandDefinition

    Represents the definition of a command.

    {
    * name: "greet",
    * description: "Send a greeting",
    * options: [
    * { name: "user", type: "user", required: true, description: "User to greet" }
    * ],
    * handler: async (message, args) => {
    * // Implementation here
    * }
    * }
    interface CommandDefinition {
        description: string;
        handler: (message: Message, args: any) => Promise<void>;
        name: string;
        options: CommandOption[];
    }
    Index

    Properties

    description: string
    handler: (message: Message, args: any) => Promise<void>
    name: string
    options: CommandOption[]