@@ -30,7 +30,7 @@ public abstract class ABotRule : IBotRule {
3030 /// <param name="db">The database.</param>
3131 /// <param name="stoppingToken">The cancellation token.</param>
3232 /// <returns>An asynchronous task.</returns>
33- public abstract Task Handle ( User user , TwitchUserConfig config , TwitchApiProxy botProxy ,
33+ public abstract Task Handle ( User user , TwitchUserConfig config , ITwitchApiProxy botProxy ,
3434 INullinsideContext db , CancellationToken stoppingToken = new ( ) ) ;
3535
3636 /// <summary>
@@ -44,7 +44,7 @@ public abstract Task Handle(User user, TwitchUserConfig config, TwitchApiProxy b
4444 /// <param name="reason">The reason for the ban.</param>
4545 /// <param name="stoppingToken">The cancellation token.</param>
4646 /// <returns>A collection of confirmed banned users.</returns>
47- protected virtual async Task < IEnumerable < BannedUser > ? > BanOnce ( TwitchApiProxy botProxy , INullinsideContext db ,
47+ protected virtual async Task < IEnumerable < BannedUser > ? > BanOnce ( ITwitchApiProxy botProxy , INullinsideContext db ,
4848 string channelId , IEnumerable < ( string Id , string Username ) > users , string reason ,
4949 CancellationToken stoppingToken = new ( ) ) {
5050 // Get the list of everyone to ban
@@ -68,7 +68,7 @@ where string.Equals(bannedUsers.ChannelId, channelId) &&
6868
6969 // Perform the ban and get the list of people actually banned
7070 IEnumerable < BannedUser > confirmedBans =
71- await botProxy . BanUsers ( channelId , Constants . BotId , bansToTry , reason , stoppingToken ) ;
71+ await botProxy . BanChannelUsers ( channelId , Constants . BotId , bansToTry , reason , stoppingToken ) ;
7272
7373 await db . SaveTwitchBans ( channelId , users , reason , stoppingToken ) ;
7474 return confirmedBans ;
0 commit comments