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) return;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
cachedChannel.type === DiscordChannelTypes.GUILD_VOICE && payload.guildId
|
cachedChannel.type === DiscordChannelTypes.GuildVoice && payload.guildId
|
||||||
) {
|
) {
|
||||||
const guild = await cacheHandlers.get("guilds", payload.guildId);
|
const guild = await cacheHandlers.get("guilds", payload.guildId);
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ export async function startTyping(channelId: string) {
|
|||||||
if (channel) {
|
if (channel) {
|
||||||
if (
|
if (
|
||||||
![
|
![
|
||||||
DiscordChannelTypes.DM,
|
DiscordChannelTypes.Dm,
|
||||||
DiscordChannelTypes.GUILD_NEWS,
|
DiscordChannelTypes.GuildNews,
|
||||||
DiscordChannelTypes.GUILD_TEXT,
|
DiscordChannelTypes.GuildText,
|
||||||
].includes(channel.type)
|
].includes(channel.type)
|
||||||
) {
|
) {
|
||||||
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ export async function sendMessage(
|
|||||||
if (channel) {
|
if (channel) {
|
||||||
if (
|
if (
|
||||||
![
|
![
|
||||||
DiscordChannelTypes.DM,
|
DiscordChannelTypes.Dm,
|
||||||
DiscordChannelTypes.GUILD_NEWS,
|
DiscordChannelTypes.GuildNews,
|
||||||
DiscordChannelTypes.GUILD_TEXT,
|
DiscordChannelTypes.GuildText,
|
||||||
].includes(channel.type)
|
].includes(channel.type)
|
||||||
) {
|
) {
|
||||||
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
||||||
|
|||||||
Reference in New Issue
Block a user