mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-22 05:51:26 +00:00
[AB-302] refactoring assignable roles to use buttons instead of reactions
moved button related services to component service instead of message service adding component type to component payload renamed async role service methods ignoring bot reactions in starboard fixing rank not showing correct experience to next level for other members
This commit is contained in:
@@ -32,6 +32,9 @@ public class StarAddedListener extends StarboardListener implements AsyncReactio
|
||||
if(model.getUserReacting().getUserId().equals(model.getMessage().getAuthor().getAuthorId())) {
|
||||
return DefaultListenerResult.IGNORED;
|
||||
}
|
||||
if(model.getMemberReacting().getUser().isBot()) {
|
||||
return DefaultListenerResult.IGNORED;
|
||||
}
|
||||
Long serverId = model.getServerId();
|
||||
AEmote aEmote = emoteService.getEmoteOrDefaultEmote(StarboardFeatureConfig.STAR_EMOTE, serverId);
|
||||
if(emoteService.isReactionEmoteAEmote(model.getReaction().getReactionEmote(), aEmote)) {
|
||||
|
||||
Reference in New Issue
Block a user