createInvite abstract method

Future<IInvite> createInvite(
  1. Snowflake channelId,
  2. {int? maxAge,
  3. int? maxUses,
  4. bool? temporary,
  5. bool? unique,
  6. String? auditReason}
)

Creates new invite for given channelId

Implementation

Future<IInvite> createInvite(Snowflake channelId, {int? maxAge, int? maxUses, bool? temporary, bool? unique, String? auditReason});