Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

getPrefix

  • getPrefix(server: string): string
  • Small utility function to get a server's command prefix, or default to the global one if none exists

    Parameters

    • server: string

      the id as a string

    Returns string

    • the prefix

getPrefixRegex

  • getPrefixRegex(server: string): RegExp
  • Returns the prefix but as a usable RegExp object, calls the getPrefix function internally

    Parameters

    • server: string

      the id as a string

    Returns RegExp

    • the RegExp object with the prefix of the server

theNick

  • theNick(member: GuildMember): string
  • checks whether or not a discord user has a nickname or not if not, returns the user's discord username

    Parameters

    • member: GuildMember

      a discordjs member object

    Returns string

    • either the nickname or username

Legend

  • Variable
  • Function
  • Interface
  • Class

Generated using TypeDoc