mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
fix(Message): not crosspostable if has a poll (#10246)
This commit is contained in:
@@ -728,6 +728,7 @@ class Message extends Base {
|
|||||||
channel?.type === ChannelType.GuildAnnouncement &&
|
channel?.type === ChannelType.GuildAnnouncement &&
|
||||||
!this.flags.has(MessageFlags.Crossposted) &&
|
!this.flags.has(MessageFlags.Crossposted) &&
|
||||||
this.type === MessageType.Default &&
|
this.type === MessageType.Default &&
|
||||||
|
!this.poll &&
|
||||||
channel.viewable &&
|
channel.viewable &&
|
||||||
channel.permissionsFor(this.client.user)?.has(bitfield, false),
|
channel.permissionsFor(this.client.user)?.has(bitfield, false),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user