You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Censor middleware does not get run on messages that were sent in channels not of the type TextChannel (e.g. discord.threads.Thread or discord.channel.VoiceChannel). This is due to the following lines filtering out messages from ignored channel types:
We should change this to a list of channel types where censoring is not needed. If more types are ever added in future discord.py versions that conflict with the current typing/member interface (LSP starts spitting out type errors when accessing message.channel.*), then we can refactor to fix the type warnings.
The text was updated successfully, but these errors were encountered:
Nydauron
changed the title
Censor does not work in channels not of type TextChannel
Censor does not run in channels not of type TextChannelJul 15, 2024
Censor middleware does not get run on messages that were sent in channels not of the type
TextChannel
(e.g.discord.threads.Thread
ordiscord.channel.VoiceChannel
). This is due to the following lines filtering out messages from ignored channel types:pi-bot/src/discord/censor.py
Lines 48 to 54 in e2e768b
We should change this to a list of channel types where censoring is not needed. If more types are ever added in future discord.py versions that conflict with the current typing/member interface (LSP starts spitting out type errors when accessing
message.channel.*
), then we can refactor to fix the type warnings.The text was updated successfully, but these errors were encountered: