Skip to content

Commit

Permalink
fix(Message): not crosspostable if has a poll (#10246)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored May 4, 2024
1 parent cb961f5 commit a6b9f1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/discord.js/src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
Expand Down

0 comments on commit a6b9f1b

Please sign in to comment.