Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix NPE in notify
  • Loading branch information
MinnDevelopment committed Aug 16, 2020
1 parent d45edef commit 9ffada0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ public class NotifyCommand extends Command
@Override
public void dispatch(final User sender, final TextChannel channel, final Message message, final String content, final GuildMessageReceivedEvent event)
{
final Member member = channel.getGuild().getMember(sender);
final Member member = message.getMember();
final Guild guild = channel.getGuild();

if (!guild.equals(Bot.getGuildJda()))
Expand Down

0 comments on commit 9ffada0

Please sign in to comment.