Class SelectMenuValuesWrapper

A wrapper for select menu data.

Constructors

Properties

raw: string[]

The raw received values.

The resolved data for this instance.

Methods

  • Get the selected members.

    If ensurePresent is false, members that aren't in resolved will be ignored.

    Parameters

    • Optional ensurePresent: boolean

      If true, an error will be thrown if any value cannot be mapped to a member.

    Returns Member[]

  • Get the selected mentionables. (users, roles)

    If ensurePresent is false, mentionables that aren't in resolved will be ignored.

    Parameters

    • Optional ensurePresent: boolean

      If true, an error will be thrown if any value cannot be mapped to a user, or role.

    Returns (User | Role)[]

  • Get the selected roles.

    If ensurePresent is false, roles that aren't in resolved will be ignored.

    Parameters

    • Optional ensurePresent: boolean

      If true, an error will be thrown if any value cannot be mapped to a role.

    Returns Role[]

  • Get the selected users.

    If ensurePresent is false, users that aren't in resolved will be ignored.

    Parameters

    • Optional ensurePresent: boolean

      If true, an error will be thrown if any value cannot be mapped to a user.

    Returns User[]