Skip to content

Commit

Permalink
make lookup command require roles because why not
Browse files Browse the repository at this point in the history
  • Loading branch information
jagrosh committed Dec 19, 2019
1 parent cdb9216 commit bfa0570
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public LookupCmd(Vortex vortex)
@Override
protected void execute(CommandEvent event)
{
if(event.isFromType(ChannelType.TEXT) && event.getMember().getRoles().isEmpty())
{
event.reactError();
return;
}
if(event.getArgs().isEmpty())
{
event.replyError("Please provide a User ID, Server ID, or Invite Code\n"
Expand Down

0 comments on commit bfa0570

Please sign in to comment.