Skip to content

Commit

Permalink
fix a null or something
Browse files Browse the repository at this point in the history
  • Loading branch information
RheaAyase committed Feb 4, 2025
1 parent 5f8eb12 commit 3d0bbc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Entities/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public Command CreateCopy(string newID)
/// <summary> Returns true if the User has permission to execute this command. </summary>
public bool CanExecute(IValkyrjaClient client, Server server, SocketGuildChannel channel, SocketGuildUser user)
{
if( user == null )
return false;

if( client.IsGlobalAdmin(user.Id) )
return true;

Expand Down

0 comments on commit 3d0bbc6

Please sign in to comment.