diff --git a/README.md b/README.md index c18c7a2c8..967fd8e3b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Discord API library for [Node.JS](https://nodejs.org), [Deno](https://deno.land) ## Tips -- If you are already convinced about using Discordeno, go to [Getting Started](https://discordeno.mod.land) +- If you are already convinced about using Discordeno, go to [Getting Started](https://discordeno.github.io/discordeno/) - To learn if Discordeno is right for you, read everything below. ## Packages @@ -93,7 +93,7 @@ Have your cache setup in any way you like. Redis, PGSQL or any cache layer you w ## Getting Started -Interested? [Check the website](https://discordeno.mod.land) for more details on getting started. +Interested? [Check the website](https://discordeno.github.io/discordeno/) for more details on getting started. ### Tools @@ -102,7 +102,7 @@ and unofficial templates: ## Links -- [Website](https://discordeno.mod.land) +- [Website](https://discordeno.github.io/discordeno/) - [Documentation](https://doc.deno.land/https/deno.land/x/discordeno/mod.ts) - [Discord](https://discord.com/invite/5vBgXk3UcZ) diff --git a/examples/README.md b/examples/README.md index db4460cca..dec2ced8e 100644 --- a/examples/README.md +++ b/examples/README.md @@ -5,6 +5,6 @@ This repo is meant as a template which you can use to create a Discord bot very easily using the [Discordeno library](https://github.com/discordeno/discordeno). -[Website/Guide](https://discordeno.mod.land/) +[Website/Guide](https://discordeno.github.io/discordeno//) [Discord Server](https://discord.com/invite/5vBgXk3UcZ) diff --git a/packages/client/src/Constants.ts b/packages/client/src/Constants.ts index ddb6d62ad..ed7c5dece 100644 --- a/packages/client/src/Constants.ts +++ b/packages/client/src/Constants.ts @@ -586,4 +586,54 @@ export const WebhookTypes = { } export type IntentStrings = keyof typeof Intents -export type PermissionClientStrings = keyof typeof Permissions \ No newline at end of file +export type PermissionClientStrings = keyof typeof Permissions + +export const Constants = { + GATEWAY_VERSION, + REST_VERSION, + MessageFlags, + ActivityTypes, + ApplicationCommandOptionTypes, + ApplicationCommandPermissionTypes, + ApplicationCommandTypes, + AuditLogActions, + ButtonStyles, + ComponentTypes, + ConnectionVisibilityTypes, + DefaultMessageNotificationLevels, + ExplicitContentFilterLevels, + GatewayOPCodes, + GuildFeatures, + GuildIntegrationExpireBehavior, + GuildIntegrationTypes, + GuildNSFWLevels, + ImageFormats, + ImageSizeBoundaries, + Intents, + InteractionResponseTypes, + InteractionTypes, + MFALevels, + MessageActivityFlags, + MessageActivityTypes, + MessageTypes, + PermissionOverwriteTypes, + Permissions, + PremiumTiers, + GuildScheduledEventStatus, + GuildScheduledEventEntityTypes, + GuildScheduledEventPrivacyLevel, + PremiumTypes, + StageInstancePrivacyLevel, + StickerFormats, + StickerTypes, + SystemChannelFlags, + SystemJoinMessages, + ThreadMemberFlags, + UserFlags, + VerificationLevels, + VideoQualityModes, + VoiceOPCodes, + WebhookTypes, +} +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type Constants = typeof Constants; \ No newline at end of file diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index 6d90cb644..8268a0c1a 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -99,7 +99,6 @@ export * from './Base.js' export * from './Client.js' export * from './Collection.js' export * from './Constants.js' -export * as Constants from './Constants.js' export * from './Endpoints.js' export * from './gateway/Shard.js' export * from './gateway/ShardManager.js' diff --git a/packages/types/README.md b/packages/types/README.md index 3c7dfe717..aff6fbd00 100644 --- a/packages/types/README.md +++ b/packages/types/README.md @@ -149,6 +149,6 @@ and unofficial templates: ## Links -- [Website](https://discordeno.mod.land) +- [Website](https://discordeno.github.io/discordeno/) - [Documentation](https://doc.deno.land/https/deno.land/x/discordeno/mod.ts) - [Discord](https://discord.com/invite/5vBgXk3UcZ) diff --git a/packages/utils/README.md b/packages/utils/README.md index 3c7dfe717..aff6fbd00 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -149,6 +149,6 @@ and unofficial templates: ## Links -- [Website](https://discordeno.mod.land) +- [Website](https://discordeno.github.io/discordeno/) - [Documentation](https://doc.deno.land/https/deno.land/x/discordeno/mod.ts) - [Discord](https://discord.com/invite/5vBgXk3UcZ) diff --git a/website/docs/intro.md b/website/docs/intro.md index f965abf6d..47a7f2026 100644 --- a/website/docs/intro.md +++ b/website/docs/intro.md @@ -76,7 +76,7 @@ Have your cache setup in any way you like. Redis, PGSQL or any cache layer you w ## Getting Started -Interested? [Check the website](https://discordeno.mod.land) for more details on getting started. +Interested? [Check the website](https://discordeno.github.io/discordeno/) for more details on getting started. ### Tools @@ -85,7 +85,7 @@ and unofficial templates: ## Links -- [Website](https://discordeno.mod.land) +- [Website](https://discordeno.github.io/discordeno/) - [Documentation](https://doc.deno.land/https/deno.land/x/discordeno/mod.ts) - [Discord](https://discord.com/invite/5vBgXk3UcZ) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index a2525e095..05cb7999f 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -11,7 +11,7 @@ const config = { favicon: 'img/favicon.png', // Set the production url of your site here - url: 'https://discordeno.mod.land', + url: 'https://discordeno.github.io', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/discordeno/', @@ -132,24 +132,24 @@ const config = { }, }), - plugins: [ - [ - require.resolve("@easyops-cn/docusaurus-search-local"), - { - indexDocs: true, - indexPages: true, - docsRouteBasePath: ["/docs", "/tutorial"], - language: ["en"], - hashed: true, - docsDir: ["docs", "tutorial"], - blogDir: [], - removeDefaultStopWordFilter: true, - highlightSearchTermsOnTargetPage: true, - searchResultLimits: 8, - searchResultContextMaxLength: 50, - }, - ], - ] + plugins: [ + [ + require.resolve('@easyops-cn/docusaurus-search-local'), + { + indexDocs: true, + indexPages: true, + docsRouteBasePath: ['/docs', '/tutorial'], + language: ['en'], + hashed: true, + docsDir: ['docs', 'tutorial'], + blogDir: [], + removeDefaultStopWordFilter: true, + highlightSearchTermsOnTargetPage: true, + searchResultLimits: 8, + searchResultContextMaxLength: 50, + }, + ], + ], } module.exports = config