removeRecipient method

Future<void> removeRecipient(
  1. Snowflake channelId,
  2. Snowflake userId
)

Implementation

Future<void> removeRecipient(Snowflake channelId, Snowflake userId) async {
  final route = HttpRoute()
    ..channels(id: channelId.toString())
    ..recipients(id: userId.toString());
  final request = BasicRequest(route, method: 'DELETE');

  await client.httpHandler.executeSafe(request);
}