Class SelectMenuValuesWrapper

A wrapper for select menu data.

Hierarchy

  • SelectMenuValuesWrapper

Constructors

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 (Role | User)[]

  • 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[]

Properties

raw: string[]

The raw received values.

The resolved data for this instance.