tempBanUser abstract method

  1. @POST.new('/admin/users/temp-ban')
Future<UserMutationResponse> tempBanUser({
  1. @Body.new() required TempBanUserRequest body,
})

Temp ban user.

Apply temporary ban to user account for specified duration. Prevents login and guild operations. Automatically lifts after expiry. Creates audit log entry. Requires USER_TEMP_BAN permission.

body - Name not received - field will be skipped.

Implementation

@POST('/admin/users/temp-ban')
Future<UserMutationResponse> tempBanUser({
  @Body() required TempBanUserRequest body,
});