Interaction.from constructor

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

Implementation

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