ContextUserInteraction.from constructor

ContextUserInteraction.from({
  1. required dynamic payload,
})

Implementation

factory ContextUserInteraction.from({ required dynamic payload }) {
  return ContextUserInteraction(
    payload['target_id'],
    payload['channel_id'],
    payload['type'],
    payload['id'],
    payload['name'],
    payload['application_id'],
    payload['version'],
    payload['type'],
    payload['token'],
    payload['member']?['user']?['id'],
    payload['guild_id'],
  );
}