SelectMenuInteraction.from constructor

SelectMenuInteraction.from({
  1. required Message? message,
  2. required dynamic payload,
})

Implementation

factory SelectMenuInteraction.from({ required Message? message, required dynamic payload }) {
  return SelectMenuInteraction(
    payload['id'],
    null,
    payload['application_id'],
    payload['version'],
    payload['type'],
    payload['token'],
    payload['member']?['user']?['id'],
    payload['guild_id'],
    message,
    payload['data']['custom_id'],
    payload['channel_id'],
  );
}