Skip to content

Commit

Permalink
chore: update import of Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed Aug 8, 2022
1 parent d93a820 commit f217fdc
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/gil/lib/BotClient.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/gil/lib/inhibitors/cooldown.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/gil/lib/structures/Command.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/cache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Collection from "@discordjs/collection";
import { Collection } from "@discordjs/collection";

export interface CacheStructure<K, V> {
get: (key: K) => V | Promise<V>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Collection from "@discordjs/collection";
import { Collection } from "@discordjs/collection";
import type { Client } from "../../structures/Client";

export class CacheableStructManager<K, V> {
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/managers/global/CalendarManager.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/managers/global/GuildBanManager.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
6 changes: 4 additions & 2 deletions packages/guilded.js/lib/managers/global/MemberManager.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -35,7 +35,9 @@ export class GlobalMemberManager extends CacheableStructManager<string, Member>

/** Kick a member from a server */
kick(serverId: string, memberId: string): Promise<Member | null> {
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. */
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/managers/global/MessageManager.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/managers/global/WebhookManager.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/structures/channels/Channel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type Collection from "@discordjs/collection";
import type { Collection } from "@discordjs/collection";
import type {
RESTGetChannelMessagesQuery,
RESTPostChannelMessagesBody,
Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/structures/channels/DocChannel.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/structures/channels/ListChannel.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion packages/guilded.js/lib/structures/collectors/Collector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Collection from "@discordjs/collection";
import { Collection } from "@discordjs/collection";
import type { MaybePromise } from "../../typings";
import type { Client } from "../Client";

Expand Down

0 comments on commit f217fdc

Please sign in to comment.