refactor!: move dirs outside of src/ (#2032)

This commit is contained in:
Skillz4Killz
2022-02-11 09:49:53 +00:00
committed by GitHub
parent 471ef5cb6c
commit 8aaea9f339
594 changed files with 84 additions and 66 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { ChannelTypes } from "../../src/types/channels/channelTypes.ts";
import { ChannelTypes } from "../../types/channels/channelTypes.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../constants.ts";
import { assertExists, assertNotEquals } from "../deps.ts";
import { bot } from "../mod.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { ChannelTypes } from "../../../src/types/channels/channelTypes.ts";
import { ChannelTypes } from "../../../types/channels/channelTypes.ts";
import { assertExists } from "../../deps.ts";
import { bot } from "../../mod.ts";
import { delayUntil } from "../../utils.ts";
+2 -2
View File
@@ -1,5 +1,5 @@
import { CreateGuildChannel } from "../../../src/types/guilds/createGuildChannel.ts";
import { ChannelTypes } from "../../../src/types/mod.ts";
import { CreateGuildChannel } from "../../../types/guilds/createGuildChannel.ts";
import { ChannelTypes } from "../../../types/mod.ts";
import { assertEquals, assertExists } from "../../deps.ts";
import { bot } from "../../mod.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
export async function getVanityURLTests(guildId: bigint) {
@@ -1,6 +1,6 @@
import { Bot } from "../../../../src/bot.ts";
import { ChannelTypes } from "../../../../src/types/channels/channelTypes.ts";
import { CreateScheduledEvent, ScheduledEventEntityType } from "../../../../src/types/guilds/scheduledEvents.ts";
import { Bot } from "../../../../bot.ts";
import { ChannelTypes } from "../../../../types/channels/channelTypes.ts";
import { CreateScheduledEvent, ScheduledEventEntityType } from "../../../../types/guilds/scheduledEvents.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../../../constants.ts";
import { assertEquals, assertExists } from "../../../deps.ts";
@@ -1,4 +1,4 @@
import { Bot } from "../../../../src/bot.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../../../src/types/guilds/scheduledEvents.ts";
import { Bot } from "../../../../bot.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../../../types/guilds/scheduledEvents.ts";
export async function deleteScheduledEventTests(guildId: bigint) {}
@@ -1,5 +1,5 @@
import { ChannelTypes } from "../../../../src/types/channels/channelTypes.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../../../src/types/guilds/scheduledEvents.ts";
import { ChannelTypes } from "../../../../types/channels/channelTypes.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../../../types/guilds/scheduledEvents.ts";
import { assertEquals } from "../../../deps.ts";
import { bot } from "../../../mod.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
export async function createInviteTest(channelId: bigint) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
export async function deleteInviteTest(channelId: bigint) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
export async function getChannelInvitesTest(channelId: bigint) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
export async function getInviteTest(channelId: bigint) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
export async function getInvitesTest(bot: Bot, channelId: bigint, guildId: bigint, t: Deno.TestContext) {
+2 -2
View File
@@ -1,5 +1,5 @@
import { Bot } from "../../../src/bot.ts";
import { CreateGuildBan } from "../../../src/types/mod.ts";
import { Bot } from "../../../bot.ts";
import { CreateGuildBan } from "../../../types/mod.ts";
import { assertEquals } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
export async function fetchSingleMemberTest(guildId: bigint) {}
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
import { bot } from "../../mod.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
import { bot } from "../../mod.ts";
import { delayUntil } from "../../utils.ts";
+3 -3
View File
@@ -1,8 +1,8 @@
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
import { CreateMessage } from "../../../src/types/messages/createMessage.ts";
import { MessageComponentTypes } from "../../../src/types/messages/components/messageComponentTypes.ts";
import { ButtonStyles } from "../../../src/types/messages/components/buttonStyles.ts";
import { CreateMessage } from "../../../types/messages/createMessage.ts";
import { MessageComponentTypes } from "../../../types/messages/components/messageComponentTypes.ts";
import { ButtonStyles } from "../../../types/messages/components/buttonStyles.ts";
import { bot } from "../../mod.ts";
async function ifItFailsBlameWolf(channelId: bigint, content: CreateMessage) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
export async function getUserTests() {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals } from "../../deps.ts";
export async function getRolesTest(guildId: bigint) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { Bot } from "../../../src/bot.ts";
import { Bot } from "../../../bot.ts";
import { assertEquals, assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
+1 -1
View File
@@ -1,6 +1,6 @@
import { assertExists } from "../deps.ts";
import { bot } from "../mod.ts";
import { ActivityTypes } from "../../src/types/activity/activityTypes.ts";
import { ActivityTypes } from "../../types/activity/activityTypes.ts";
import { delayUntil } from "../utils.ts";
Deno.test("[misc] edit the bot's status", async function () {
@@ -1,4 +1,4 @@
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot, guild } from "../mod.ts";
@@ -1,4 +1,4 @@
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot, guild } from "../mod.ts";
@@ -1,5 +1,5 @@
import { ChannelTypes } from "../../mod.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../constants.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot } from "../mod.ts";
@@ -1,5 +1,5 @@
import { ChannelTypes } from "../../mod.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../constants.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot } from "../mod.ts";
@@ -1,5 +1,5 @@
import { ChannelTypes } from "../../mod.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot, guild } from "../mod.ts";
@@ -1,5 +1,5 @@
import { ChannelTypes } from "../../mod.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { bot, guild } from "../mod.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { bot, guild } from "../mod.ts";
Deno.test({
+1 -1
View File
@@ -1,5 +1,5 @@
import { ChannelTypes } from "../../mod.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../src/types/guilds/scheduledEvents.ts";
import { ScheduledEventEntityType, ScheduledEventPrivacyLevel } from "../../types/guilds/scheduledEvents.ts";
import { CACHED_COMMUNITY_GUILD_ID } from "../constants.ts";
import { assertEquals } from "../deps.ts";
import { bot } from "../mod.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { bigintToSnowflake, snowflakeToBigint } from "../../src/util/bigint.ts";
import { bigintToSnowflake, snowflakeToBigint } from "../../util/bigint.ts";
import { assertEquals, assertNotEquals } from "../deps.ts";
Deno.test("[Local Test] - snowflakeToBigint ", () => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { formatImageURL } from "../../src/util/utils.ts";
import { formatImageURL } from "../../util/utils.ts";
import { assertEquals } from "../deps.ts";
Deno.test({
+1 -1
View File
@@ -1,4 +1,4 @@
import { iconBigintToHash, iconHashToBigInt } from "../../src/util/hash.ts";
import { iconBigintToHash, iconHashToBigInt } from "../../util/hash.ts";
import { assertEquals } from "../deps.ts";
const iconHash = "4bbb271a13f7195031adcc06a2d867ce";
const iconBigInt = 3843769888406823508519992434416504301518n;
+1 -1
View File
@@ -1,4 +1,4 @@
import { delay, hasProperty } from "../../src/util/utils.ts";
import { delay, hasProperty } from "../../util/utils.ts";
import { assertEquals } from "../deps.ts";
// hasProperty
+1 -1
View File
@@ -1,4 +1,4 @@
import { validateLength } from "../../src/util/validateLength.ts";
import { validateLength } from "../../util/validateLength.ts";
import { assertEquals } from "../deps.ts";
Deno.test({