banUserAvatar abstract method
- @POST.new('/admin/users/{user_id}/ban-avatar')
- @Path.new('user_id') required SnowflakeType userId,
- @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,
});