Organize imports (#127)

* Organize imports

* Organize imports
This commit is contained in:
chroventer
2020-10-02 01:35:48 -07:00
committed by GitHub
parent 93c57dd4a8
commit 3fab966208
32 changed files with 186 additions and 203 deletions
+29 -23
View File
@@ -1,43 +1,49 @@
import { endpoints } from "../constants/discord.ts";
import { cacheHandlers } from "../controllers/cache.ts";
import { identifyPayload } from "../module/client.ts";
import { RequestManager } from "../module/requestManager.ts";
import { requestAllMembers } from "../module/shardingManager.ts";
import type { Guild } from "../structures/guild.ts";
import type { Member } from "../structures/member.ts";
import { structures } from "../structures/mod.ts";
import type { ImageFormats, ImageSize } from "../types/cdn.ts";
import {
ChannelCreatePayload,
ChannelTypes,
} from "../types/channel.ts";
import type { ImageFormats, ImageSize } from "../types/cdn.ts";
import { Errors } from "../types/errors.ts";
import type {
BannedUser,
BanOptions,
ChannelCreateOptions,
CreateEmojisOptions,
PositionSwap,
EditEmojisOptions,
CreateRoleOptions,
CreateServerOptions,
EditEmojisOptions,
EditIntegrationOptions,
FetchMembersOptions,
GetAuditLogsOptions,
EditIntegrationOptions,
BanOptions,
GuildEditOptions,
PositionSwap,
PruneOptions,
PrunePayload,
ChannelCreateOptions,
BannedUser,
UserPayload,
CreateServerOptions,
} from "../types/guild.ts";
import type { RoleData } from "../types/role.ts";
import type { MemberCreatePayload } from "../types/member.ts";
import type { Member } from "../structures/member.ts";
import { Collection } from "../utils/collection.ts";
import { urlToBase64 } from "../utils/utils.ts";
UserPayload,
} from "../types/guild.ts";
import type { MemberCreatePayload } from "../types/member.ts";
import { Intents } from "../types/options.ts";
import { identifyPayload } from "../module/client.ts";
import { requestAllMembers } from "../module/shardingManager.ts";
import { botHasPermission } from "../utils/permissions.ts";
import { RequestManager } from "../module/requestManager.ts";
import { endpoints } from "../constants/discord.ts";
import { Errors } from "../types/errors.ts";
import { Permissions } from "../types/permission.ts";
import { structures } from "../structures/mod.ts";
import { cacheHandlers } from "../controllers/cache.ts";
import type { RoleData } from "../types/role.ts";
import { formatImageURL } from "../utils/cdn.ts";
import { Collection } from "../utils/collection.ts";
import { botHasPermission } from "../utils/permissions.ts";
import { urlToBase64 } from "../utils/utils.ts";
/** Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event. This endpoint can be used only by bots in less than 10 guilds. */
export function createServer(options: CreateServerOptions) {