Skip to content

Commit

Permalink
Filter faq list by user access
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTech6 committed Sep 15, 2024
1 parent 6d8fee6 commit a61a920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Commands/Basic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public void ListFAQs(ChatCommandContext ctx)
{
foreach(KeyResponse kp in Plugin.DB.Responses)
{
if(kp.isAdmin && !Plugin.DB.IsTrusted(ctx.User)) continue;

Check failure on line 24 in Commands/Basic.cs

View workflow job for this annotation

GitHub Actions / build

'KeyResponse' does not contain a definition for 'isAdmin' and no accessible extension method 'isAdmin' accepting a first argument of type 'KeyResponse' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 24 in Commands/Basic.cs

View workflow job for this annotation

GitHub Actions / build

'KeyResponse' does not contain a definition for 'isAdmin' and no accessible extension method 'isAdmin' accepting a first argument of type 'KeyResponse' could be found (are you missing a using directive or an assembly reference?)
reply += kp.Key + "\n";
}
}
Expand Down

0 comments on commit a61a920

Please sign in to comment.