Skip to content

Commit

Permalink
fixup! chore: update to discord.js 13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesteery committed Aug 6, 2021
1 parent b0a11c6 commit eb70f09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
Channel,
ChannelManager,
GuildChannelManager,
PartialDMChannel,
TextChannel,
} from 'discord.js';

Expand All @@ -14,6 +15,6 @@ export function findTextChannelByName(
) as TextChannel;
}

export function isTextChannel(channel: Channel): channel is TextChannel {
export function isTextChannel(channel: Channel | PartialDMChannel): channel is TextChannel {
return channel instanceof TextChannel;
}

0 comments on commit eb70f09

Please sign in to comment.