Skip to content

Commit eb70f09

Browse files
committed
fixup! chore: update to discord.js 13.x
1 parent b0a11c6 commit eb70f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/framework/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
Channel,
33
ChannelManager,
44
GuildChannelManager,
5+
PartialDMChannel,
56
TextChannel,
67
} from 'discord.js';
78

@@ -14,6 +15,6 @@ export function findTextChannelByName(
1415
) as TextChannel;
1516
}
1617

17-
export function isTextChannel(channel: Channel): channel is TextChannel {
18+
export function isTextChannel(channel: Channel | PartialDMChannel): channel is TextChannel {
1819
return channel instanceof TextChannel;
1920
}

0 commit comments

Comments
 (0)