Skip to content

Commit

Permalink
Do not mention replied user by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Aug 23, 2023
1 parent f9d14d9 commit d222277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/net/neoforged/camelot/BotMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
import net.dv8tion.jda.api.hooks.EventListener;
import net.dv8tion.jda.api.requests.ErrorResponse;
import net.dv8tion.jda.api.requests.GatewayIntent;
import net.dv8tion.jda.api.requests.restaction.MessageCreateAction;
import net.dv8tion.jda.api.utils.MemberCachePolicy;
import net.dv8tion.jda.api.utils.cache.CacheFlag;
import net.dv8tion.jda.api.utils.messages.MessageCreateData;
import net.dv8tion.jda.api.utils.messages.MessageRequest;
import net.neoforged.camelot.commands.Commands;
import net.neoforged.camelot.commands.information.InfoChannelCommand;
import net.neoforged.camelot.db.transactionals.SlashTricksDAO;
Expand Down Expand Up @@ -118,6 +121,8 @@ public static void main(String[] args) {
System.exit(-1);
}

MessageRequest.setDefaultMentionRepliedUser(false);

instance = JDABuilder
.create(Config.LOGIN_TOKEN, INTENTS)
.disableCache(CacheFlag.VOICE_STATE, CacheFlag.ACTIVITY, CacheFlag.CLIENT_STATUS, CacheFlag.ONLINE_STATUS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void execute(CommandEvent commandEvent) {
.queue()).toString(), "Add trick")
)
.build())
.mentionRepliedUser(false)
.queue();
}

Expand Down

0 comments on commit d222277

Please sign in to comment.