Skip to content

Commit a6b9f1b

Browse files
authored
fix(Message): not crosspostable if has a poll (#10246)
1 parent cb961f5 commit a6b9f1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/discord.js/src/structures/Message.js

+1
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ class Message extends Base {
728728
channel?.type === ChannelType.GuildAnnouncement &&
729729
!this.flags.has(MessageFlags.Crossposted) &&
730730
this.type === MessageType.Default &&
731+
!this.poll &&
731732
channel.viewable &&
732733
channel.permissionsFor(this.client.user)?.has(bitfield, false),
733734
);

0 commit comments

Comments
 (0)