banUserAvatar abstract method

  1. @POST.new('/admin/users/{user_id}/ban-avatar')
Future<BanUserAvatarResponseSchema> banUserAvatar({
  1. @Path.new('user_id') required SnowflakeType userId,
  2. @Body.new() required BanUserAvatarRequest body,
})

Ban this user's current avatar.

Reads the user's current avatar_hash, strips any animation prefix, and adds the 8-char hash to the avatar blocklist. Returns the banned hash.

userId - The ID of the user.

body - Name not received - field will be skipped.

Implementation

@POST('/admin/users/{user_id}/ban-avatar')
Future<BanUserAvatarResponseSchema> banUserAvatar({
  @Path('user_id') required SnowflakeType userId,
  @Body() required BanUserAvatarRequest body,
});