DynamicMenuInteraction.from constructor

DynamicMenuInteraction.from(
  1. dynamic payload,
  2. PartialChannel channel
)

Implementation

factory DynamicMenuInteraction.from(dynamic payload, PartialChannel channel) => DynamicMenuInteraction(
  payload['id'],
  null,
  payload['application_id'],
  payload['version'],
  payload['type'],
  payload['token'],
  payload['member']?['user']?['id'],
  payload['guild_id'],
  (payload['guild_id'] != null ? Message.from(channel: channel as GuildChannel, payload: payload['message']) : DmMessage.from(channel: channel as DmChannel, payload: payload['message'])) as PartialMessage<PartialChannel>?,
  payload['data']['custom_id'],
  channel,
  MenuBucket(payload['data']['values']),
);