mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix proxying in announcement channels
This commit is contained in:
parent
a69ac186e0
commit
3ef1496383
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ namespace PluralKit.Bot
|
|||
if (ctx.SystemId == null) return false;
|
||||
|
||||
// Make sure channel is a guild text channel and this is a normal message
|
||||
if (msg.Channel.Type != ChannelType.Text || msg.MessageType != MessageType.Default) return false;
|
||||
if ((msg.Channel.Type != ChannelType.Text && msg.Channel.Type != ChannelType.News) || msg.MessageType != MessageType.Default) return false;
|
||||
|
||||
// Make sure author is a normal user
|
||||
if (msg.Author.IsSystem == true || msg.Author.IsBot || msg.WebhookMessage) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue