Webhook constructor

Webhook({
  1. required String id,
  2. required WebhookType type,
  3. String? guildId,
  4. String? channelId,
  5. User? user,
  6. String? name,
  7. String? avatar,
  8. String? token,
  9. required String applicationId,
  10. Guild? sourceGuild,
  11. Channel? sourceChannel,
  12. String? url,
})

Constructor

Implementation

Webhook({
  required this.id,
  required this.type,
  this.guildId,
  this.channelId,
  this.user,
  this.name,
  this.avatar,
  this.token,
  required this.applicationId,
  this.sourceGuild,
  this.sourceChannel,
  this.url,
});