Fix proxying in announcement channels
This commit is contained in:
parent
a69ac186e0
commit
3ef1496383
@ -74,7 +74,7 @@ namespace PluralKit.Bot
|
|||||||
if (ctx.SystemId == null) return false;
|
if (ctx.SystemId == null) return false;
|
||||||
|
|
||||||
// Make sure channel is a guild text channel and this is a normal message
|
// 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
|
// Make sure author is a normal user
|
||||||
if (msg.Author.IsSystem == true || msg.Author.IsBot || msg.WebhookMessage) return false;
|
if (msg.Author.IsSystem == true || msg.Author.IsBot || msg.WebhookMessage) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user