We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a11c6 commit eb70f09Copy full SHA for eb70f09
src/framework/helpers.ts
@@ -2,6 +2,7 @@ import {
2
Channel,
3
ChannelManager,
4
GuildChannelManager,
5
+ PartialDMChannel,
6
TextChannel,
7
} from 'discord.js';
8
@@ -14,6 +15,6 @@ export function findTextChannelByName(
14
15
) as TextChannel;
16
}
17
-export function isTextChannel(channel: Channel): channel is TextChannel {
18
+export function isTextChannel(channel: Channel | PartialDMChannel): channel is TextChannel {
19
return channel instanceof TextChannel;
20
0 commit comments