File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class VolteHandler {
1919 private readonly AntilinkService _antilink = _services . GetRequiredService < AntilinkService > ( ) ;
2020 private readonly EconomyService _economy = _services . GetRequiredService < EconomyService > ( ) ;
2121 private readonly PingChecksService _pingchecks = _services . GetRequiredService < PingChecksService > ( ) ;
22+ private readonly DatabaseService _db = _services . GetRequiredService < DatabaseService > ( ) ;
2223
2324 private static readonly IServiceProvider _services = VolteBot . ServiceProvider ;
2425
@@ -47,8 +48,8 @@ private async Task HandleMessageOrCommand(SocketMessage s) {
4748 await _economy . Give ( ctx ) ;
4849 await _pingchecks . CheckMessage ( ctx ) ;
4950
50- var config = _services . GetRequiredService < DatabaseService > ( ) . GetConfig ( ctx . Guild ) ;
51- _services . GetRequiredService < DatabaseService > ( ) . GetUser ( s . Author . Id ) ;
51+ var config = _db . GetConfig ( ctx . Guild ) ;
52+ _db . GetUser ( s . Author . Id ) ;
5253 var prefix = string . IsNullOrEmpty ( config . CommandPrefix ) ? Config . GetCommandPrefix ( ) : config . CommandPrefix ;
5354 var msgStrip = msg . Content . Replace ( prefix , string . Empty ) ;
5455 if ( msg . HasStringPrefix ( prefix , ref argPos ) || msg . HasMentionPrefix ( _client . CurrentUser , ref argPos ) ) {
You can’t perform that action at this time.
0 commit comments