Skip to content

Commit

Permalink
New Update
Browse files Browse the repository at this point in the history
1. Fix #314
  • Loading branch information
megoRU committed Jun 18, 2024
1 parent a184ec3 commit 8db52ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/main/core/events/CheckBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void check(@NotNull SlashCommandInteractionEvent event) {
Member selfMember = event.getGuild().getSelfMember();

GuildChannelUnion textChannel = event.getOption("textchannel", OptionMapping::getAsChannel);
GuildChannel guildChannel = textChannel != null ? textChannel : event.getGuildChannel().asTextChannel();
GuildChannel guildChannel = textChannel != null ? textChannel : event.getGuildChannel();

if (textChannel == null) {
event.reply("TextChannel is `null`").queue();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/main/core/events/ReactionEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public void reaction(@NotNull MessageReactionAddEvent event, UpdateController up
GiveawayRegistry instance = GiveawayRegistry.getInstance();
Giveaway giveaway = instance.getGiveaway(guildIdLong);


if (giveaway != null) {
GiveawayData giveawayData = giveaway.getGiveawayData();
if (giveawayData.participantContains(user.getId())) return;
Expand Down

0 comments on commit 8db52ac

Please sign in to comment.