mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix my renaming thing
This commit is contained in:
@@ -11,7 +11,7 @@ export async function handleChannelDelete(data: DiscordGatewayPayload) {
|
||||
if (!cachedChannel) return;
|
||||
|
||||
if (
|
||||
cachedChannel.type === DiscordChannelTypes.GUILD_VOICE && payload.guildId
|
||||
cachedChannel.type === DiscordChannelTypes.GuildVoice && payload.guildId
|
||||
) {
|
||||
const guild = await cacheHandlers.get("guilds", payload.guildId);
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ export async function startTyping(channelId: string) {
|
||||
if (channel) {
|
||||
if (
|
||||
![
|
||||
DiscordChannelTypes.DM,
|
||||
DiscordChannelTypes.GUILD_NEWS,
|
||||
DiscordChannelTypes.GUILD_TEXT,
|
||||
DiscordChannelTypes.Dm,
|
||||
DiscordChannelTypes.GuildNews,
|
||||
DiscordChannelTypes.GuildText,
|
||||
].includes(channel.type)
|
||||
) {
|
||||
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
||||
|
||||
@@ -26,9 +26,9 @@ export async function sendMessage(
|
||||
if (channel) {
|
||||
if (
|
||||
![
|
||||
DiscordChannelTypes.DM,
|
||||
DiscordChannelTypes.GUILD_NEWS,
|
||||
DiscordChannelTypes.GUILD_TEXT,
|
||||
DiscordChannelTypes.Dm,
|
||||
DiscordChannelTypes.GuildNews,
|
||||
DiscordChannelTypes.GuildText,
|
||||
].includes(channel.type)
|
||||
) {
|
||||
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
||||
|
||||
Reference in New Issue
Block a user