Skip to content

Commit

Permalink
Bump SQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jan 2, 2024
1 parent baa5199 commit 9e308ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ public void addReactionRole(String sessionIdentifier, long guildId, String emoji
reactionRole.setFormattedEmote(formattedEmoji);
reactionRole.setGuildId(guild.getIdLong());
reactionRole.setMessageId(messageIdNumber);
reactionRole.setRoleId(role.getId());
reactionRole.getGuildRoleId().setRoleId(role.getId());

SQLSession.getSqlConnector().getSqlWorker().updateEntity(reactionRole);
} catch (NumberFormatException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ReactionRoleContainer {
EmojiUnion emojiUnion;

public ReactionRoleContainer(ReactionRole reactionRole, GuildContainer guildContainer) {
role = guildContainer.getRoleById(reactionRole.getRoleId());
role = guildContainer.getRoleById(reactionRole.getId());
emoji = reactionRole.getFormattedEmote();
emojiUnion = Emoji.fromFormatted(reactionRole.getFormattedEmote());
}
Expand Down

0 comments on commit 9e308ae

Please sign in to comment.