Skip to content

Commit

Permalink
submit not queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 5, 2023
1 parent fc89217 commit 4b64988
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -265,7 +265,7 @@ public static void register() {
// <DiscordRoleTag.color>
// -->
tagProcessor.registerMechanism("color", false, ColorTag.class, (object, mechanism, color) -> {
object.role.getManager().setColor(color.asRGB()).queue();
object.role.getManager().setColor(color.asRGB()).submit();
});

// <--[mechanism]
Expand All @@ -277,7 +277,7 @@ public static void register() {
// -->
tagProcessor.registerMechanism("mentionable", false, ElementTag.class, (object, mechanism, input) -> {
if (mechanism.requireBoolean()) {
object.role.getManager().setMentionable(input.asBoolean()).queue();
object.role.getManager().setMentionable(input.asBoolean()).submit();
}
});
}
Expand Down

0 comments on commit 4b64988

Please sign in to comment.