banGuildMember2 abstract method
- @PUT.new('/guilds/{guild_id}/bans/{user_id}')
- @Path.new('guild_id') required SnowflakeType guildId,
- @Path.new('user_id') required SnowflakeType userId,
- @Body.new() required GuildBanCreateRequest body,
Ban guild member.
Ban guild member. Requires ban_members permission. Prevents user from joining; optionally deletes recent messages and sets ban expiry duration.
guildId - The ID of the guild.
userId - The ID of the user.
body - Name not received - field will be skipped.
Implementation
@PUT('/guilds/{guild_id}/bans/{user_id}')
Future<void> banGuildMember2({
@Path('guild_id') required SnowflakeType guildId,
@Path('user_id') required SnowflakeType userId,
@Body() required GuildBanCreateRequest body,
});