Skip to content

Commit

Permalink
Account for threads
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Oct 25, 2024
1 parent 67a4a77 commit 528a6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Events/MessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static async Task MessageHandlerAsync(DiscordClient client, MockDiscordMe
{
// This user's tracking is filtered to channels; check the channel before relaying the msg to the tracking thread
var channels = JsonConvert.DeserializeObject<List<ulong>>(trackingChannels);
if (channels.Contains(channel.Id))
if (channels.Contains(channel.Id) || channels.Contains(channel.Parent.Id))
{
await RelayTrackedMessageAsync(client, message);
}
Expand Down

0 comments on commit 528a6d9

Please sign in to comment.