Skip to content

Commit 3795f58

Browse files
committed
fx discord
1 parent e6e9ee1 commit 3795f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client-discord/src/messages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ export class MessageManager {
698698
// Check if it's either a text channel or announcement channel
699699
// ChannelType.GuildAnnouncement is 5
700700
// ChannelType.GuildText is 0
701-
if (channel instanceof TextChannel || channel.type === ChannelType.GuildAnnouncement) {
701+
if (channel.type === ChannelType.GuildText || channel.type === ChannelType.GuildAnnouncement) {
702702
const newsChannel = channel as TextChannel;
703703
try {
704704
newsChannel.createMessageCollector().on('collect', async (message: DiscordMessage) => {

0 commit comments

Comments
 (0)