mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
6 lines
264 B
TypeScript
6 lines
264 B
TypeScript
import { Channel, DMChannel } from "discord.js";
|
|
import { ChannelTypeStrings } from "src/types";
|
|
|
|
export function isDmChannel(channel: Channel): channel is DMChannel {
|
|
return channel.type === ChannelTypeStrings.DM || channel.type === ChannelTypeStrings.GROUP;
|
|
}
|