mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 09:54:42 +12:00
fix(Message): not crosspostable if has a poll (#10246)
This commit is contained in:
parent
cb961f5be3
commit
a6b9f1b37e
1 changed files with 1 additions and 0 deletions
|
@ -728,6 +728,7 @@ class Message extends Base {
|
|||
channel?.type === ChannelType.GuildAnnouncement &&
|
||||
!this.flags.has(MessageFlags.Crossposted) &&
|
||||
this.type === MessageType.Default &&
|
||||
!this.poll &&
|
||||
channel.viewable &&
|
||||
channel.permissionsFor(this.client.user)?.has(bitfield, false),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue