UserMenuInteraction.from constructor
UserMenuInteraction.from(
- dynamic payload,
- PartialChannel channel
Implementation
factory UserMenuInteraction.from(dynamic payload, PartialChannel channel) => UserMenuInteraction(
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['guild_id'], List<String>.from(payload['data']['values'])),
);