We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e9ee1 commit 3795f58Copy full SHA for 3795f58
packages/client-discord/src/messages.ts
@@ -698,7 +698,7 @@ export class MessageManager {
698
// Check if it's either a text channel or announcement channel
699
// ChannelType.GuildAnnouncement is 5
700
// ChannelType.GuildText is 0
701
- if (channel instanceof TextChannel || channel.type === ChannelType.GuildAnnouncement) {
+ if (channel.type === ChannelType.GuildText || channel.type === ChannelType.GuildAnnouncement) {
702
const newsChannel = channel as TextChannel;
703
try {
704
newsChannel.createMessageCollector().on('collect', async (message: DiscordMessage) => {
0 commit comments