Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Gatekeeper

A gatekeeper instance. Holds commands, manages discord interactions, etc.

Hierarchy

  • Gatekeeper

Index

Methods

addMessageCommand

  • Add a message command

    gatekeeper.addMessageCommand({
    name: 'reverse',
    run: (ctx) => {
    ctx.reply(() => ctx.targetMessage.content.split("").reverse().join(""))
    }
    })

    Parameters

    Returns void

addSlashCommand

addUserCommand

  • Add a user command

    gatekeeper.addUserCommand({
    name: 'get user color',
    run: (ctx) => ctx.reply(() => ctx.targetGuildMember?.color ?? "not in a guild!"),
    })

    Parameters

    Returns void

Static create

getCommands

Generated using TypeDoc