Skip to content

Commit

Permalink
chore: Fix Ree6 spamming user DMs after not being able to find Chat o…
Browse files Browse the repository at this point in the history
…r Voice Rewards.
  • Loading branch information
DxsSucuk committed Jan 15, 2025
1 parent c3693a5 commit e081824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/presti/ree6/utils/others/GuildUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static void handleVoiceLevelReward(Guild guild, Member member) {
LanguageService.getByGuild(guild, "message.brs.autoRole.deleted").subscribe(message ->
privateChannel.sendMessage(message).queue()));

SQLSession.getSqlConnector().getSqlWorker().removeAutoRole(guild.getIdLong(), entry.getValue());
SQLSession.getSqlConnector().getSqlWorker().removeVoiceLevelReward(guild.getIdLong(), entry.getValue());
return;
}

Expand Down Expand Up @@ -194,7 +194,7 @@ public static void handleChatLevelReward(Guild guild, Member member) {
LanguageService.getByGuild(guild, "message.brs.autoRole.deleted").subscribe(message ->
privateChannel.sendMessage(message).queue()));

SQLSession.getSqlConnector().getSqlWorker().removeAutoRole(guild.getIdLong(), entry.getValue());
SQLSession.getSqlConnector().getSqlWorker().removeChatLevelReward(guild.getIdLong(), entry.getValue());
return;
}

Expand Down

0 comments on commit e081824

Please sign in to comment.