Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MessageCommandParserOptions

Hierarchy

  • MessageCommandParserOptions

Index

Properties

prefix?: string

Bot prefix on top of a direct mention to the bot. Dynamic prefixes will require a custom implementation

regexProvider?: RegExpConstructor

Optionally set a custom regex provider, such as RE2

Methods

  • getPrefix(request: Request): MaybePromise<undefined | null | string>
  • Get a dynamic prefix e.g from a database synchronously or asynchronously. Return null or undefined to fall back to default prefix

    Parameters

    Returns MaybePromise<undefined | null | string>

Generated using TypeDoc