3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-26 02:35:03 +00:00
zeppelin/backend/src/utils/isGuildChannel.ts
2023-03-11 19:31:36 +00:00

5 lines
201 B
TypeScript

import type { Channel, GuildBasedChannel } from "discord.js";
export function isGuildChannel(channel: Channel): channel is GuildBasedChannel {
return "guild" in channel && channel.guild !== null;
}