fix my renaming thing

This commit is contained in:
ITOH
2021-05-01 18:39:20 +02:00
parent c28904f14b
commit 51095db12f
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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);
+3 -3
View File
@@ -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);
+3 -3
View File
@@ -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);