(wip) migrate to spring beans
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -72,8 +72,8 @@ public class ClearCommand extends SlashCommandImpl
|
||||
botMessage = botMessage.editMessage(content).setActionRow(dismiss).complete();
|
||||
|
||||
// add the message to database.
|
||||
Cache.getDatabaseSource().queueDisabling(botMessage);
|
||||
Cache.getDatabaseSource().trackRanCommandReply(botMessage, event.getUser());
|
||||
Cache.getServices().databaseService().queueDisabling(botMessage);
|
||||
Cache.getServices().databaseService().trackRanCommandReply(botMessage, event.getUser());
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -44,8 +44,8 @@ public class TriviaCommand extends SlashCommandImpl
|
||||
|
||||
event.getHook().editOriginalEmbeds(response.embed()).setActionRow(response.components()).queue(message ->
|
||||
{
|
||||
Cache.getDatabaseSource().trackRanCommandReply(message, event.getUser());
|
||||
Cache.getDatabaseSource().queueDisabling(message);
|
||||
Cache.getServices().databaseService().trackRanCommandReply(message, event.getUser());
|
||||
Cache.getServices().databaseService().queueDisabling(message);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user