Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public override ValueTask<PreconditionResult> EnsureCanExecuteAsync(TContext con
if (guild is null)
return new(PreconditionResult.Fail("The current guild could not be found."));

var botId = context.Client.Cache.User!.Id;
var botId = context.Client.Id;

if (guild.OwnerId == botId)
return new(PreconditionResult.Success);
Expand All @@ -88,7 +88,7 @@ public override ValueTask<PreconditionResult> EnsureCanExecuteAsync(TContext con
if (guild is null)
return new(PreconditionResult.Fail("The current guild could not be found."));

var botId = context.Client.Cache.User!.Id;
var botId = context.Client.Id;

if (guild.OwnerId == botId)
return new(PreconditionResult.Success);
Expand Down