Skip to content

Commit

Permalink
Also check parent channel ID
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Oct 23, 2024
1 parent 8002dc6 commit c0c44ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/InteractionCommands/RulesInteractions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public async Task RuleSearchCommand(InteractionContext ctx, [Option("keyword", "
// Returns: true for public response, false for private
private async Task<bool> DeterminePublicResponse(DiscordMember member, DiscordChannel channel, bool? isPublic)
{
if (Program.cfgjson.RulesAllowedPublicChannels.Contains(channel.Id))
if (Program.cfgjson.RulesAllowedPublicChannels.Contains(channel.Id) || Program.cfgjson.RulesAllowedPublicChannels.Contains(channel.Parent.Id))
{
if (isPublic is null)
return true;
Expand Down

0 comments on commit c0c44ef

Please sign in to comment.