Skip to content

Commit

Permalink
!debug overrides: Use friendly permission names
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Nov 30, 2024
1 parent fbe14c1 commit d5edf2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Commands/Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,11 @@ await ctx.RespondAsync(
var response = $"**Overrides for {user.Mention}:**\n\n";
foreach (var overwrite in overwrites)
{
var allowedPermissions = string.IsNullOrWhiteSpace(overwrite.Value.Allowed.ToString("name")) ? "none" : overwrite.Value.Allowed.ToString("name");
var deniedPermissions = string.IsNullOrWhiteSpace(overwrite.Value.Denied.ToString("name")) ? "none" : overwrite.Value.Denied.ToString("name");

response +=
$"<#{overwrite.Key}>:\n**Allowed**: {overwrite.Value.Allowed}\n**Denied**: {overwrite.Value.Denied}\n\n";
$"<#{overwrite.Key}>:\n**Allowed**: {allowedPermissions}\n**Denied**: {deniedPermissions}\n\n";
}

if (response.Length > 2000)
Expand Down

0 comments on commit d5edf2c

Please sign in to comment.