From aef2361c41918fe1981e865d7b7e8e2252c84afa Mon Sep 17 00:00:00 2001 From: java-coding-prodigy Date: Sun, 5 Nov 2023 16:51:46 +0530 Subject: [PATCH] some necessary stuff --- application/config.json.template | 2 +- .../java/org/togetherjava/tjbot/features/basic/Starboard.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/config.json.template b/application/config.json.template index 2f62e3bf12..56ace1f6ca 100644 --- a/application/config.json.template +++ b/application/config.json.template @@ -109,7 +109,7 @@ ] }, "starboard": { - "emojiNames" : ["star"], + "emojiNames" : ["⭐"], "channelPattern": "starboard" } } diff --git a/application/src/main/java/org/togetherjava/tjbot/features/basic/Starboard.java b/application/src/main/java/org/togetherjava/tjbot/features/basic/Starboard.java index 3abdcea683..7e1d10a0a0 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/basic/Starboard.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/basic/Starboard.java @@ -45,7 +45,7 @@ public Starboard(Config config, Database database) { @Override public void onMessageReactionAdd(@NotNull MessageReactionAddEvent event) { - String emojiName = event.getEmoji().asCustom().getName(); + String emojiName = event.getEmoji().getName(); Guild guild = event.getGuild(); long messageId = event.getMessageIdLong(); if (shouldIgnoreMessage(emojiName, guild, event.getGuildChannel(), messageId)) {