From a0bd415cbe89354d7c3cd92eae70c2c8ec5a78c3 Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Thu, 13 May 2021 10:37:31 +0400 Subject: [PATCH] style: fix lint warnings (#935) --- src/helpers/channels/clone_channel.ts | 1 - .../commands/application_command_interaction_data_resolved.ts | 1 - src/types/util.ts | 2 ++ tests/util/delay_until.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/channels/clone_channel.ts b/src/helpers/channels/clone_channel.ts index bed3f4241..1a8c4cc5b 100644 --- a/src/helpers/channels/clone_channel.ts +++ b/src/helpers/channels/clone_channel.ts @@ -4,7 +4,6 @@ import type { CreateGuildChannel } from "../../types/guilds/create_guild_channel import { Errors } from "../../types/discordeno/errors.ts"; import { bigintToSnowflake } from "../../util/bigint.ts"; import { calculatePermissions } from "../../util/permissions.ts"; -import { createChannel } from "./create_channel.ts"; import { helpers } from "../mod.ts"; /** Create a copy of a channel */ diff --git a/src/types/interactions/commands/application_command_interaction_data_resolved.ts b/src/types/interactions/commands/application_command_interaction_data_resolved.ts index 07f2509fa..d9f2b224a 100644 --- a/src/types/interactions/commands/application_command_interaction_data_resolved.ts +++ b/src/types/interactions/commands/application_command_interaction_data_resolved.ts @@ -1,5 +1,4 @@ import { Channel } from "../../channels/channel.ts"; -import { GuildMember } from "../../members/guild_member.ts"; import { Role } from "../../permissions/role.ts"; import { User } from "../../users/user.ts"; import { InteractionGuildMember } from "../interaction_guild_member.ts"; diff --git a/src/types/util.ts b/src/types/util.ts index 2426293f9..7287c0ab3 100644 --- a/src/types/util.ts +++ b/src/types/util.ts @@ -1,3 +1,5 @@ +// deno-lint-ignore-file ban-types no-explicit-any + export type UpperCaseCharacters = | "A" | "B" diff --git a/tests/util/delay_until.ts b/tests/util/delay_until.ts index a75f686cf..460429c15 100644 --- a/tests/util/delay_until.ts +++ b/tests/util/delay_until.ts @@ -10,7 +10,7 @@ export async function delayUntil( if (isReady() || Date.now() >= maxTime) { resolve(); } else { - setTimeout(async () => hackyFix(resolve), timeoutTime); + setTimeout(() => hackyFix(resolve), timeoutTime); } }