diff --git a/src/helpers/channels/clone_channel.ts b/src/helpers/channels/clone_channel.ts index 6a3696fac..c2864a2c9 100644 --- a/src/helpers/channels/clone_channel.ts +++ b/src/helpers/channels/clone_channel.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../cache.ts"; import { DiscordChannelTypes } from "../../types/channels/channel_types.ts"; import type { CreateGuildChannel } from "../../types/guilds/create_guild_channel.ts"; -import { Errors } from "../../types/misc/errors.ts"; +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"; diff --git a/src/helpers/channels/delete_channel.ts b/src/helpers/channels/delete_channel.ts index 8634f827f..ed443c78a 100644 --- a/src/helpers/channels/delete_channel.ts +++ b/src/helpers/channels/delete_channel.ts @@ -1,6 +1,6 @@ import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { ChannelTypes } from "../../types/mod.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotGuildPermissions } from "../../util/permissions.ts"; diff --git a/src/helpers/channels/start_typing.ts b/src/helpers/channels/start_typing.ts index 8a48c8ccc..486253f08 100644 --- a/src/helpers/channels/start_typing.ts +++ b/src/helpers/channels/start_typing.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; import { DiscordChannelTypes } from "../../types/channels/channel_types.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { botHasChannelPermissions } from "../../util/permissions.ts"; diff --git a/src/helpers/channels/threads/get_thread_members.ts b/src/helpers/channels/threads/get_thread_members.ts index 34c1d0e13..89fe6a2ed 100644 --- a/src/helpers/channels/threads/get_thread_members.ts +++ b/src/helpers/channels/threads/get_thread_members.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../../cache.ts"; import { rest } from "../../../rest/rest.ts"; import { ChannelTypes } from "../../../types/channels/channel_types.ts"; -import { Errors } from "../../../types/misc/errors.ts"; +import { Errors } from "../../../types/discordeno/errors.ts"; import { endpoints } from "../../../util/constants.ts"; // TODO(threads): it seems like the documented return type is wrong diff --git a/src/helpers/channels/threads/remove_from_thread.ts b/src/helpers/channels/threads/remove_from_thread.ts index 9e967a843..917c36000 100644 --- a/src/helpers/channels/threads/remove_from_thread.ts +++ b/src/helpers/channels/threads/remove_from_thread.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../../cache.ts"; import { rest } from "../../../rest/rest.ts"; import { ChannelTypes } from "../../../types/channels/channel_types.ts"; -import { Errors } from "../../../types/misc/errors.ts"; +import { Errors } from "../../../types/discordeno/errors.ts"; import { endpoints } from "../../../util/constants.ts"; /** Removes another user from a thread. Requires the MANAGE_THREADS permission or that you are the creator of the thread. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update Gateway event. */ diff --git a/src/helpers/channels/threads/start_thread.ts b/src/helpers/channels/threads/start_thread.ts index dc4f8bbde..60f2fc372 100644 --- a/src/helpers/channels/threads/start_thread.ts +++ b/src/helpers/channels/threads/start_thread.ts @@ -2,7 +2,7 @@ import { cacheHandlers } from "../../../cache.ts"; import { rest } from "../../../rest/rest.ts"; import { ChannelTypes } from "../../../types/channels/channel_types.ts"; import { StartThread } from "../../../types/channels/threads/start_thread.ts"; -import { Errors } from "../../../types/misc/errors.ts"; +import { Errors } from "../../../types/discordeno/errors.ts"; import { endpoints } from "../../../util/constants.ts"; import { camelKeysToSnakeCase } from "../../../util/utils.ts"; diff --git a/src/helpers/commands/edit_slash_response.ts b/src/helpers/commands/edit_slash_response.ts index 9857805e6..2c60d7836 100644 --- a/src/helpers/commands/edit_slash_response.ts +++ b/src/helpers/commands/edit_slash_response.ts @@ -3,7 +3,7 @@ import { rest } from "../../rest/rest.ts"; import { structures } from "../../structures/mod.ts"; import type { DiscordenoEditWebhookMessage } from "../../types/discordeno/edit_webhook_message.ts"; import { DiscordAllowedMentionsTypes } from "../../types/messages/allowed_mentions_types.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; /** To edit your response to a slash command. If a messageId is not provided it will default to editing the original response. */ diff --git a/src/helpers/emojis/get_emoji.ts b/src/helpers/emojis/get_emoji.ts index 9679ee86a..ceba22536 100644 --- a/src/helpers/emojis/get_emoji.ts +++ b/src/helpers/emojis/get_emoji.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; import type { Emoji } from "../../types/emojis/emoji.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; /** diff --git a/src/helpers/emojis/get_emojis.ts b/src/helpers/emojis/get_emojis.ts index e3dfa30fd..049f2a809 100644 --- a/src/helpers/emojis/get_emojis.ts +++ b/src/helpers/emojis/get_emojis.ts @@ -2,7 +2,7 @@ import { eventHandlers } from "../../bot.ts"; import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; import type { Emoji } from "../../types/emojis/emoji.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { snowflakeToBigint } from "../../util/bigint.ts"; import { Collection } from "../../util/collection.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/helpers/guilds/get_prune_count.ts b/src/helpers/guilds/get_prune_count.ts index fe25797d6..aaba70777 100644 --- a/src/helpers/guilds/get_prune_count.ts +++ b/src/helpers/guilds/get_prune_count.ts @@ -1,6 +1,6 @@ import { rest } from "../../rest/rest.ts"; import type { GetGuildPruneCountQuery } from "../../types/guilds/get_guild_prune_count.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotGuildPermissions } from "../../util/permissions.ts"; import { camelKeysToSnakeCase } from "../../util/utils.ts"; diff --git a/src/helpers/guilds/get_widget.ts b/src/helpers/guilds/get_widget.ts index 9a31b2c30..58659bacb 100644 --- a/src/helpers/guilds/get_widget.ts +++ b/src/helpers/guilds/get_widget.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; import type { GuildWidgetDetails } from "../../types/guilds/guild_widget_details.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; /** Returns the widget for the guild. */ diff --git a/src/helpers/guilds/get_widget_image_url.ts b/src/helpers/guilds/get_widget_image_url.ts index e754b0aba..d33413872 100644 --- a/src/helpers/guilds/get_widget_image_url.ts +++ b/src/helpers/guilds/get_widget_image_url.ts @@ -1,6 +1,6 @@ import { cacheHandlers } from "../../cache.ts"; import type { GetGuildWidgetImageQuery } from "../../types/guilds/get_guild_widget_image.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; /** Returns the widget image URL for the guild. */ diff --git a/src/helpers/invites/create_invite.ts b/src/helpers/invites/create_invite.ts index e6e3e6008..8266d1271 100644 --- a/src/helpers/invites/create_invite.ts +++ b/src/helpers/invites/create_invite.ts @@ -1,7 +1,7 @@ import { rest } from "../../rest/rest.ts"; import type { CreateChannelInvite } from "../../types/invites/create_channel_invite.ts"; import type { Invite } from "../../types/invites/invite.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotChannelPermissions } from "../../util/permissions.ts"; diff --git a/src/helpers/invites/delete_invite.ts b/src/helpers/invites/delete_invite.ts index 01d1d1c48..ba88f94c5 100644 --- a/src/helpers/invites/delete_invite.ts +++ b/src/helpers/invites/delete_invite.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; import type { Invite } from "../../types/invites/invite.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { botHasChannelPermissions, diff --git a/src/helpers/members/edit_bot_profile.ts b/src/helpers/members/edit_bot_profile.ts index 719351636..11efed089 100644 --- a/src/helpers/members/edit_bot_profile.ts +++ b/src/helpers/members/edit_bot_profile.ts @@ -1,5 +1,5 @@ import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { User } from "../../types/users/user.ts"; import { endpoints } from "../../util/constants.ts"; import { urlToBase64 } from "../../util/utils.ts"; diff --git a/src/helpers/members/edit_member.ts b/src/helpers/members/edit_member.ts index 8b28e890b..e16958e89 100644 --- a/src/helpers/members/edit_member.ts +++ b/src/helpers/members/edit_member.ts @@ -3,7 +3,7 @@ import { rest } from "../../rest/rest.ts"; import { structures } from "../../structures/mod.ts"; import type { GuildMemberWithUser } from "../../types/guilds/guild_member.ts"; import type { ModifyGuildMember } from "../../types/guilds/modify_guild_member.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { PermissionStrings } from "../../types/permissions/permission_strings.ts"; import { bigintToSnowflake } from "../../util/bigint.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/helpers/members/fetch_members.ts b/src/helpers/members/fetch_members.ts index 2781bafa1..ba94ca136 100644 --- a/src/helpers/members/fetch_members.ts +++ b/src/helpers/members/fetch_members.ts @@ -3,7 +3,7 @@ import { DiscordenoMember } from "../../structures/member.ts"; import { DiscordGatewayOpcodes } from "../../types/codes/gateway_opcodes.ts"; import { DiscordGatewayIntents } from "../../types/gateway/gateway_intents.ts"; import type { RequestGuildMembers } from "../../types/guilds/request_guild_members.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { Collection } from "../../util/collection.ts"; import { sendShardMessage } from "../../ws/send_shard_message.ts"; import { ws } from "../../ws/ws.ts"; diff --git a/src/helpers/members/get_members.ts b/src/helpers/members/get_members.ts index 2305d0cbc..15d8975c4 100644 --- a/src/helpers/members/get_members.ts +++ b/src/helpers/members/get_members.ts @@ -6,7 +6,7 @@ import { structures } from "../../structures/mod.ts"; import { DiscordGatewayIntents } from "../../types/gateway/gateway_intents.ts"; import type { GuildMemberWithUser } from "../../types/guilds/guild_member.ts"; import type { ListGuildMembers } from "../../types/guilds/list_guild_members.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { bigintToSnowflake } from "../../util/bigint.ts"; import { Collection } from "../../util/collection.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/helpers/members/kick_member.ts b/src/helpers/members/kick_member.ts index 4b1151574..421cd9b5a 100644 --- a/src/helpers/members/kick_member.ts +++ b/src/helpers/members/kick_member.ts @@ -1,6 +1,6 @@ import { botId } from "../../bot.ts"; import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { highestRole, diff --git a/src/helpers/members/prune_members.ts b/src/helpers/members/prune_members.ts index a59860ad5..05e950a97 100644 --- a/src/helpers/members/prune_members.ts +++ b/src/helpers/members/prune_members.ts @@ -1,6 +1,6 @@ import { rest } from "../../rest/rest.ts"; import type { BeginGuildPrune } from "../../types/guilds/begin_guild_prune.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotGuildPermissions } from "../../util/permissions.ts"; import { camelKeysToSnakeCase } from "../../util/utils.ts"; diff --git a/src/helpers/members/search_members.ts b/src/helpers/members/search_members.ts index 6258c69de..6a9d2fede 100644 --- a/src/helpers/members/search_members.ts +++ b/src/helpers/members/search_members.ts @@ -4,7 +4,7 @@ import { DiscordenoMember } from "../../structures/member.ts"; import { structures } from "../../structures/mod.ts"; import type { GuildMemberWithUser } from "../../types/guilds/guild_member.ts"; import type { SearchGuildMembers } from "../../types/members/search_guild_members.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { Collection } from "../../util/collection.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/helpers/messages/delete_messages.ts b/src/helpers/messages/delete_messages.ts index b8b3683a8..afed2cc95 100644 --- a/src/helpers/messages/delete_messages.ts +++ b/src/helpers/messages/delete_messages.ts @@ -1,5 +1,5 @@ import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotChannelPermissions } from "../../util/permissions.ts"; diff --git a/src/helpers/messages/edit_message.ts b/src/helpers/messages/edit_message.ts index b76a55974..637133b08 100644 --- a/src/helpers/messages/edit_message.ts +++ b/src/helpers/messages/edit_message.ts @@ -4,7 +4,7 @@ import { DiscordenoMessage } from "../../structures/message.ts"; import { structures } from "../../structures/mod.ts"; import { EditMessage } from "../../types/messages/edit_message.ts"; import type { Message } from "../../types/messages/message.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { PermissionStrings } from "../../types/permissions/permission_strings.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotChannelPermissions } from "../../util/permissions.ts"; diff --git a/src/helpers/messages/send_message.ts b/src/helpers/messages/send_message.ts index cdfac97a4..2de5fcb1e 100644 --- a/src/helpers/messages/send_message.ts +++ b/src/helpers/messages/send_message.ts @@ -6,7 +6,7 @@ import { DiscordAllowedMentionsTypes } from "../../types/messages/allowed_mentio import { ButtonStyles } from "../../types/messages/components/button_styles.ts"; import type { CreateMessage } from "../../types/messages/create_message.ts"; import type { Message } from "../../types/messages/message.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { PermissionStrings } from "../../types/permissions/permission_strings.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotChannelPermissions } from "../../util/permissions.ts"; diff --git a/src/helpers/roles/add_role.ts b/src/helpers/roles/add_role.ts index b207ad9c8..a080f01ba 100644 --- a/src/helpers/roles/add_role.ts +++ b/src/helpers/roles/add_role.ts @@ -1,6 +1,6 @@ import { botId } from "../../bot.ts"; import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { isHigherPosition, diff --git a/src/helpers/roles/remove_role.ts b/src/helpers/roles/remove_role.ts index 645cd990f..feb3c923b 100644 --- a/src/helpers/roles/remove_role.ts +++ b/src/helpers/roles/remove_role.ts @@ -1,6 +1,6 @@ import { botId } from "../../bot.ts"; import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { isHigherPosition, diff --git a/src/helpers/webhooks/create_webhook.ts b/src/helpers/webhooks/create_webhook.ts index a83c25147..14055633d 100644 --- a/src/helpers/webhooks/create_webhook.ts +++ b/src/helpers/webhooks/create_webhook.ts @@ -1,5 +1,5 @@ import { rest } from "../../rest/rest.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { CreateWebhook } from "../../types/webhooks/create_webhook.ts"; import type { Webhook } from "../../types/webhooks/webhook.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/helpers/webhooks/edit_webhook_message.ts b/src/helpers/webhooks/edit_webhook_message.ts index f1565263b..c066d2933 100644 --- a/src/helpers/webhooks/edit_webhook_message.ts +++ b/src/helpers/webhooks/edit_webhook_message.ts @@ -2,7 +2,7 @@ import { rest } from "../../rest/rest.ts"; import { structures } from "../../structures/mod.ts"; import { DiscordAllowedMentionsTypes } from "../../types/messages/allowed_mentions_types.ts"; import type { Message } from "../../types/messages/message.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { EditWebhookMessage } from "../../types/webhooks/edit_webhook_message.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/helpers/webhooks/send_webhook.ts b/src/helpers/webhooks/send_webhook.ts index cb90615ed..ab96626df 100644 --- a/src/helpers/webhooks/send_webhook.ts +++ b/src/helpers/webhooks/send_webhook.ts @@ -2,7 +2,7 @@ import { rest } from "../../rest/rest.ts"; import { structures } from "../../structures/mod.ts"; import { DiscordAllowedMentionsTypes } from "../../types/messages/allowed_mentions_types.ts"; import type { Message } from "../../types/messages/message.ts"; -import { Errors } from "../../types/misc/errors.ts"; +import { Errors } from "../../types/discordeno/errors.ts"; import type { ExecuteWebhook } from "../../types/webhooks/execute_webhook.ts"; import { endpoints } from "../../util/constants.ts"; diff --git a/src/rest/create_request_body.ts b/src/rest/create_request_body.ts index 76f01a7ec..595ada4a3 100644 --- a/src/rest/create_request_body.ts +++ b/src/rest/create_request_body.ts @@ -1,4 +1,4 @@ -import type { FileContent } from "../types/misc/file_content.ts"; +import type { FileContent } from "../types/discordeno/file_content.ts"; import { USER_AGENT } from "../util/constants.ts"; import { rest, RestPayload, RestRequest } from "./rest.ts"; diff --git a/src/structures/role.ts b/src/structures/role.ts index 58536c499..6af4de9d4 100644 --- a/src/structures/role.ts +++ b/src/structures/role.ts @@ -3,7 +3,7 @@ import { cache } from "../cache.ts"; import { deleteRole } from "../helpers/roles/delete_role.ts"; import { editRole } from "../helpers/roles/edit_role.ts"; import { CreateGuildRole } from "../types/guilds/create_guild_role.ts"; -import { Errors } from "../types/misc/errors.ts"; +import { Errors } from "../types/discordeno/errors.ts"; import type { Role } from "../types/permissions/role.ts"; import { snowflakeToBigint } from "../util/bigint.ts"; import { Collection } from "../util/collection.ts"; diff --git a/src/types/misc/errors.ts b/src/types/discordeno/errors.ts similarity index 100% rename from src/types/misc/errors.ts rename to src/types/discordeno/errors.ts diff --git a/src/types/misc/file_content.ts b/src/types/discordeno/file_content.ts similarity index 100% rename from src/types/misc/file_content.ts rename to src/types/discordeno/file_content.ts diff --git a/src/types/messages/create_message.ts b/src/types/messages/create_message.ts index c59ef410f..5bee7b6ae 100644 --- a/src/types/messages/create_message.ts +++ b/src/types/messages/create_message.ts @@ -1,7 +1,7 @@ import { Embed } from "../embeds/embed.ts"; import { AllowedMentions } from "../messages/allowed_mentions.ts"; import { MessageReference } from "../messages/message_reference.ts"; -import { FileContent } from "../misc/file_content.ts"; +import { FileContent } from "../discordeno/file_content.ts"; import { SnakeCasedPropertiesDeep } from "../util.ts"; import { MessageComponents } from "./components/message_components.ts"; diff --git a/src/types/mod.ts b/src/types/mod.ts index bc4d06750..61ed15cc6 100644 --- a/src/types/mod.ts +++ b/src/types/mod.ts @@ -168,8 +168,8 @@ export * from "./misc/activity_secrets.ts"; export * from "./misc/activity_timestamps.ts"; export * from "./misc/activity_types.ts"; export * from "./misc/client_status.ts"; -export * from "./misc/errors.ts"; -export * from "./misc/file_content.ts"; +export * from "./discordeno/errors.ts"; +export * from "./discordeno/file_content.ts"; export * from "./misc/image_format.ts"; export * from "./misc/image_size.ts"; export * from "./misc/presence_update.ts"; diff --git a/src/types/webhooks/edit_webhook_message.ts b/src/types/webhooks/edit_webhook_message.ts index d8fc7ba3c..ea18f54a5 100644 --- a/src/types/webhooks/edit_webhook_message.ts +++ b/src/types/webhooks/edit_webhook_message.ts @@ -1,7 +1,7 @@ import { Embed } from "../embeds/embed.ts"; import { AllowedMentions } from "../messages/allowed_mentions.ts"; import { Attachment } from "../messages/attachment.ts"; -import { FileContent } from "../misc/file_content.ts"; +import { FileContent } from "../discordeno/file_content.ts"; /** https://discord.com/developers/docs/resources/webhook#edit-webhook-message-jsonform-params */ export interface EditWebhookMessage { diff --git a/src/types/webhooks/execute_webhook.ts b/src/types/webhooks/execute_webhook.ts index bce114c30..c8c47639d 100644 --- a/src/types/webhooks/execute_webhook.ts +++ b/src/types/webhooks/execute_webhook.ts @@ -1,6 +1,6 @@ import { Embed } from "../embeds/embed.ts"; import { AllowedMentions } from "../messages/allowed_mentions.ts"; -import { FileContent } from "../misc/file_content.ts"; +import { FileContent } from "../discordeno/file_content.ts"; import { SnakeCasedPropertiesDeep } from "../util.ts"; /** https://discord.com/developers/docs/resources/webhook#execute-webhook */ diff --git a/src/util/permissions.ts b/src/util/permissions.ts index fec52ffb8..b2f5c71f8 100644 --- a/src/util/permissions.ts +++ b/src/util/permissions.ts @@ -5,7 +5,7 @@ import { DiscordenoGuild } from "../structures/guild.ts"; import { DiscordenoMember } from "../structures/member.ts"; import { DiscordenoRole } from "../structures/role.ts"; import { Overwrite } from "../types/channels/overwrite.ts"; -import { Errors } from "../types/misc/errors.ts"; +import { Errors } from "../types/discordeno/errors.ts"; import { DiscordBitwisePermissionFlags } from "../types/permissions/bitwise_permission_flags.ts"; import type { PermissionStrings } from "../types/permissions/permission_strings.ts"; diff --git a/src/util/utils.ts b/src/util/utils.ts index 4b81719c6..8ae7511f9 100644 --- a/src/util/utils.ts +++ b/src/util/utils.ts @@ -5,7 +5,7 @@ import type { ApplicationCommandOptionChoice } from "../types/interactions/appli import { DiscordApplicationCommandOptionTypes } from "../types/interactions/application_command_option_types.ts"; import type { CreateGlobalApplicationCommand } from "../types/interactions/create_global_application_command.ts"; import type { EditGlobalApplicationCommand } from "../types/interactions/edit_global_application_command.ts"; -import { Errors } from "../types/misc/errors.ts"; +import { Errors } from "../types/discordeno/errors.ts"; import type { DiscordImageFormat } from "../types/misc/image_format.ts"; import type { DiscordImageSize } from "../types/misc/image_size.ts"; import { SLASH_COMMANDS_NAME_REGEX } from "./constants.ts";