3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-27 19:25:03 +00:00

half the number of errors

This commit is contained in:
almeidx 2023-03-11 19:31:36 +00:00
parent 7c5e6eb91f
commit 1dca8c4447
No known key found for this signature in database
GPG key ID: B1F4887CEBE2EDB1
261 changed files with 760 additions and 1023 deletions

View file

@ -1,5 +1,5 @@
import { Channel, GuildBasedChannel, GuildChannel } from "discord.js";
import type { Channel, GuildBasedChannel } from "discord.js";
export function isGuildChannel(channel: Channel): channel is GuildBasedChannel {
return channel.type.toString().startsWith("GUILD_");
return "guild" in channel && channel.guild !== null;
}