Class DateTimeInput

Constructors

Properties

formatSuffix: " (e.g. tomorrow at 2pm, next week, in 2 hours)" = ' (e.g. tomorrow at 2pm, next week, in 2 hours)'
formatSuffixShort: " (e.g. at 2pm)" = ' (e.g. at 2pm)'
lowercasedTimezones: string[] = ...
timezones: string[] = ...

Methods

  • Parameters

    • i: SlashCommandStringOption
    • Optionaloptions: {
          description?: string;
          name?: string;
          omitSuffix?: boolean;
          required?: boolean;
          shortSuffix?: boolean;
      }

    Returns SlashCommandStringOption

  • Parameters

    • timezone: string

    Returns undefined | string

  • Parameters

    • input: string
    • omitSuffix: boolean | "short" = false

    Returns string