@@ -30,7 +30,7 @@ public abstract class ABotRule : IBotRule {
30
30
/// <param name="db">The database.</param>
31
31
/// <param name="stoppingToken">The cancellation token.</param>
32
32
/// <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 ,
34
34
INullinsideContext db , CancellationToken stoppingToken = new ( ) ) ;
35
35
36
36
/// <summary>
@@ -44,7 +44,7 @@ public abstract Task Handle(User user, TwitchUserConfig config, TwitchApiProxy b
44
44
/// <param name="reason">The reason for the ban.</param>
45
45
/// <param name="stoppingToken">The cancellation token.</param>
46
46
/// <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 ,
48
48
string channelId , IEnumerable < ( string Id , string Username ) > users , string reason ,
49
49
CancellationToken stoppingToken = new ( ) ) {
50
50
// Get the list of everyone to ban
@@ -68,7 +68,7 @@ where string.Equals(bannedUsers.ChannelId, channelId) &&
68
68
69
69
// Perform the ban and get the list of people actually banned
70
70
IEnumerable < BannedUser > confirmedBans =
71
- await botProxy . BanUsers ( channelId , Constants . BotId , bansToTry , reason , stoppingToken ) ;
71
+ await botProxy . BanChannelUsers ( channelId , Constants . BotId , bansToTry , reason , stoppingToken ) ;
72
72
73
73
await db . SaveTwitchBans ( channelId , users , reason , stoppingToken ) ;
74
74
return confirmedBans ;
0 commit comments