GlobalCommandContext constructor

GlobalCommandContext({
  1. required Snowflake id,
  2. required Snowflake applicationId,
  3. required String token,
  4. required int version,
  5. required User user,
  6. Channel? channel,
})

Implementation

GlobalCommandContext({
  required this.id,
  required this.applicationId,
  required this.token,
  required this.version,
  required this.user,
  this.channel,
}) : interaction = Interaction(token, id);