diff --git a/packages/gil/lib/BotClient.ts b/packages/gil/lib/BotClient.ts index 2bd2ce06..29c9cb09 100644 --- a/packages/gil/lib/BotClient.ts +++ b/packages/gil/lib/BotClient.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import { bgBlue, bgGreen, bgYellow, black } from "colorette"; import { Client, Message } from "guilded.js"; import path from "path"; diff --git a/packages/gil/lib/inhibitors/cooldown.ts b/packages/gil/lib/inhibitors/cooldown.ts index a40417d8..962678dd 100644 --- a/packages/gil/lib/inhibitors/cooldown.ts +++ b/packages/gil/lib/inhibitors/cooldown.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { Message } from "guilded.js"; import type { Command } from "../structures/Command"; diff --git a/packages/gil/lib/structures/Command.ts b/packages/gil/lib/structures/Command.ts index bf624689..e4656388 100644 --- a/packages/gil/lib/structures/Command.ts +++ b/packages/gil/lib/structures/Command.ts @@ -1,4 +1,4 @@ -import type Collection from "@discordjs/collection"; +import type { Collection } from "@discordjs/collection"; import type { Message } from "guilded.js"; import type { BotClient } from "../BotClient"; diff --git a/packages/guilded.js/lib/cache.ts b/packages/guilded.js/lib/cache.ts index d60979f9..ed9e1b92 100644 --- a/packages/guilded.js/lib/cache.ts +++ b/packages/guilded.js/lib/cache.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; export interface CacheStructure { get: (key: K) => V | Promise; diff --git a/packages/guilded.js/lib/managers/global/CacheableStructManager.ts b/packages/guilded.js/lib/managers/global/CacheableStructManager.ts index 50af7968..32c0d825 100644 --- a/packages/guilded.js/lib/managers/global/CacheableStructManager.ts +++ b/packages/guilded.js/lib/managers/global/CacheableStructManager.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { Client } from "../../structures/Client"; export class CacheableStructManager { diff --git a/packages/guilded.js/lib/managers/global/CalendarManager.ts b/packages/guilded.js/lib/managers/global/CalendarManager.ts index 56404bfc..02bae810 100644 --- a/packages/guilded.js/lib/managers/global/CalendarManager.ts +++ b/packages/guilded.js/lib/managers/global/CalendarManager.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { RESTGetCalendarEventsBody, RESTPatchCalendarEventBody, RESTPostCalendarEventBody } from "@guildedjs/guilded-api-typings"; import { Base } from "../../structures"; import { CalendarEvent } from "../../structures/CalendarEvent"; diff --git a/packages/guilded.js/lib/managers/global/GuildBanManager.ts b/packages/guilded.js/lib/managers/global/GuildBanManager.ts index a1a4d673..eb5646a5 100644 --- a/packages/guilded.js/lib/managers/global/GuildBanManager.ts +++ b/packages/guilded.js/lib/managers/global/GuildBanManager.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import { MemberBan } from "../../structures/Member"; import { CacheableStructManager } from "./CacheableStructManager"; import { buildMemberKey } from "../../util"; diff --git a/packages/guilded.js/lib/managers/global/MemberManager.ts b/packages/guilded.js/lib/managers/global/MemberManager.ts index 14975b82..f4fbf596 100644 --- a/packages/guilded.js/lib/managers/global/MemberManager.ts +++ b/packages/guilded.js/lib/managers/global/MemberManager.ts @@ -1,7 +1,7 @@ import { User } from "../../structures"; import { Member, PartialMember } from "../../structures/Member"; import { CacheableStructManager } from "./CacheableStructManager"; -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { SocialLink, UserSocialLink } from "@guildedjs/guilded-api-typings"; import { buildMemberKey } from "../../util"; @@ -35,7 +35,9 @@ export class GlobalMemberManager extends CacheableStructManager /** Kick a member from a server */ kick(serverId: string, memberId: string): Promise { - return this.client.rest.router.kickMember(serverId, memberId).then((_) => this.client.members.cache.get(buildMemberKey(serverId, memberId)) ?? null); + return this.client.rest.router + .kickMember(serverId, memberId) + .then((_) => this.client.members.cache.get(buildMemberKey(serverId, memberId)) ?? null); } /** Get a list of the roles assigned to a member using the id of the member. */ diff --git a/packages/guilded.js/lib/managers/global/MessageManager.ts b/packages/guilded.js/lib/managers/global/MessageManager.ts index 3721e23b..83114b63 100644 --- a/packages/guilded.js/lib/managers/global/MessageManager.ts +++ b/packages/guilded.js/lib/managers/global/MessageManager.ts @@ -1,7 +1,7 @@ import type { RESTPostChannelMessagesBody, RESTGetChannelMessagesQuery, EmbedPayload } from "@guildedjs/guilded-api-typings"; import { Message } from "../../structures/Message"; import { CacheableStructManager } from "./CacheableStructManager"; -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { Embed } from "../../structures/Embed"; import { resolveContentToData } from "../../util"; import type { MessageContent } from "../../typings"; diff --git a/packages/guilded.js/lib/managers/global/WebhookManager.ts b/packages/guilded.js/lib/managers/global/WebhookManager.ts index 0e4cf4f4..08db37e5 100644 --- a/packages/guilded.js/lib/managers/global/WebhookManager.ts +++ b/packages/guilded.js/lib/managers/global/WebhookManager.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { RESTPostServerWebhooksBody, RESTPutServerWebhookBody } from "@guildedjs/guilded-api-typings"; import { Webhook } from "../../structures/Webhook"; import { CacheableStructManager } from "./CacheableStructManager"; diff --git a/packages/guilded.js/lib/structures/channels/Channel.ts b/packages/guilded.js/lib/structures/channels/Channel.ts index 7ba943ec..5efd16eb 100644 --- a/packages/guilded.js/lib/structures/channels/Channel.ts +++ b/packages/guilded.js/lib/structures/channels/Channel.ts @@ -1,4 +1,4 @@ -import type Collection from "@discordjs/collection"; +import type { Collection } from "@discordjs/collection"; import type { RESTGetChannelMessagesQuery, RESTPostChannelMessagesBody, diff --git a/packages/guilded.js/lib/structures/channels/DocChannel.ts b/packages/guilded.js/lib/structures/channels/DocChannel.ts index 8ba22961..74e0d180 100644 --- a/packages/guilded.js/lib/structures/channels/DocChannel.ts +++ b/packages/guilded.js/lib/structures/channels/DocChannel.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { DocPayload, RESTPostDocsBody, RESTPutDocBody } from "@guildedjs/guilded-api-typings"; import { Channel } from "./Channel"; diff --git a/packages/guilded.js/lib/structures/channels/ForumChannel.ts b/packages/guilded.js/lib/structures/channels/ForumChannel.ts index 024e5082..871546b6 100644 --- a/packages/guilded.js/lib/structures/channels/ForumChannel.ts +++ b/packages/guilded.js/lib/structures/channels/ForumChannel.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { ForumTopicPayload } from "@guildedjs/guilded-api-typings"; import { Channel } from "./Channel"; diff --git a/packages/guilded.js/lib/structures/channels/ListChannel.ts b/packages/guilded.js/lib/structures/channels/ListChannel.ts index 18ea4228..9d25b73f 100644 --- a/packages/guilded.js/lib/structures/channels/ListChannel.ts +++ b/packages/guilded.js/lib/structures/channels/ListChannel.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { ListItemPayload, ListItemSummaryPayload } from "@guildedjs/guilded-api-typings"; import { Channel } from "./Channel"; diff --git a/packages/guilded.js/lib/structures/collectors/Collector.ts b/packages/guilded.js/lib/structures/collectors/Collector.ts index 4e51193e..47cd54b1 100644 --- a/packages/guilded.js/lib/structures/collectors/Collector.ts +++ b/packages/guilded.js/lib/structures/collectors/Collector.ts @@ -1,4 +1,4 @@ -import Collection from "@discordjs/collection"; +import { Collection } from "@discordjs/collection"; import type { MaybePromise } from "../../typings"; import type { Client } from "../Client";