@@ -40,6 +40,7 @@ type Guilds interface {
40
40
GetBan (guildID snowflake.ID , userID snowflake.ID , opts ... RequestOpt ) (* discord.Ban , error )
41
41
AddBan (guildID snowflake.ID , userID snowflake.ID , deleteMessageDuration time.Duration , opts ... RequestOpt ) error
42
42
DeleteBan (guildID snowflake.ID , userID snowflake.ID , opts ... RequestOpt ) error
43
+ BulkBan (guildID snowflake.ID , ban discord.BulkBan , opts ... RequestOpt ) (* discord.BulkBanResult , error )
43
44
44
45
GetIntegrations (guildID snowflake.ID , opts ... RequestOpt ) ([]discord.Integration , error )
45
46
DeleteIntegration (guildID snowflake.ID , integrationID snowflake.ID , opts ... RequestOpt ) error
@@ -210,6 +211,11 @@ func (s *guildImpl) DeleteBan(guildID snowflake.ID, userID snowflake.ID, opts ..
210
211
return s .client .Do (DeleteBan .Compile (nil , guildID , userID ), nil , nil , opts ... )
211
212
}
212
213
214
+ func (s * guildImpl ) BulkBan (guildID snowflake.ID , ban discord.BulkBan , opts ... RequestOpt ) (result * discord.BulkBanResult , err error ) {
215
+ err = s .client .Do (BulkBan .Compile (nil , guildID ), ban , & result , opts ... )
216
+ return
217
+ }
218
+
213
219
func (s * guildImpl ) GetIntegrations (guildID snowflake.ID , opts ... RequestOpt ) (integrations []discord.Integration , err error ) {
214
220
err = s .client .Do (GetIntegrations .Compile (nil , guildID ), nil , & integrations , opts ... )
215
221
return
0 commit comments