diff --git a/README.md b/README.md index c30d258c8..51a3261b1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@


- Discord server + Discord server NPM version NPM downloads Build status @@ -32,7 +32,7 @@ ## About discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to easily interact with the -[Discord API](https://discordapp.com/developers/docs/intro). +[Discord API](https://discord.com/developers/docs/intro). - Object-oriented - Predictable abstractions diff --git a/docs/examples/attachments.md b/docs/examples/attachments.md index 21295acc6..c18e452e1 100644 --- a/docs/examples/attachments.md +++ b/docs/examples/attachments.md @@ -33,7 +33,7 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); ``` @@ -68,7 +68,7 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); ``` @@ -105,7 +105,7 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); ``` @@ -154,7 +154,7 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); ``` diff --git a/docs/examples/avatars.js b/docs/examples/avatars.js index 57972f57e..0e0515c65 100644 --- a/docs/examples/avatars.js +++ b/docs/examples/avatars.js @@ -27,5 +27,5 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); diff --git a/docs/examples/embed.js b/docs/examples/embed.js index a03921271..b8c84d122 100644 --- a/docs/examples/embed.js +++ b/docs/examples/embed.js @@ -36,5 +36,5 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); diff --git a/docs/examples/greeting.js b/docs/examples/greeting.js index f61b1c5fe..d07b14190 100644 --- a/docs/examples/greeting.js +++ b/docs/examples/greeting.js @@ -28,5 +28,5 @@ client.on('guildMemberAdd', member => { channel.send(`Welcome to the server, ${member}`); }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); diff --git a/docs/examples/moderation.md b/docs/examples/moderation.md index 36481a462..17fe8f4d5 100644 --- a/docs/examples/moderation.md +++ b/docs/examples/moderation.md @@ -66,7 +66,7 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); ``` @@ -142,7 +142,7 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); ``` diff --git a/docs/examples/ping.js b/docs/examples/ping.js index 55888e888..3afad0750 100644 --- a/docs/examples/ping.js +++ b/docs/examples/ping.js @@ -27,5 +27,5 @@ client.on('message', message => { } }); -// Log our bot in using the token from https://discordapp.com/developers/applications/me +// Log our bot in using the token from https://discord.com/developers/applications/me client.login('your token here'); diff --git a/docs/examples/webhook.js b/docs/examples/webhook.js index ab91152ea..1c74bfd8f 100644 --- a/docs/examples/webhook.js +++ b/docs/examples/webhook.js @@ -8,10 +8,10 @@ const Discord = require('discord.js'); /* * Create a new webhook - * The Webbooks ID and token can be found in the URL, when you request that URL, or in the response body. - * https://discordapp.com/api/webhooks/12345678910/T0kEn0fw3Bh00K - * ^^^^^^^^^^ ^^^^^^^^^^^^ - * Webhook ID Webhook Token + * The Webhooks ID and token can be found in the URL, when you request that URL, or in the response body. + * https://discord.com/api/webhooks/12345678910/T0kEn0fw3Bh00K + * ^^^^^^^^^^ ^^^^^^^^^^^^ + * Webhook ID Webhook Token */ const hook = new Discord.WebhookClient('webhook id', 'webhook token'); diff --git a/docs/general/welcome.md b/docs/general/welcome.md index 00991595c..551dc4c66 100644 --- a/docs/general/welcome.md +++ b/docs/general/welcome.md @@ -5,7 +5,7 @@


- Discord server + Discord server NPM version NPM downloads Build status @@ -24,7 +24,7 @@ Welcome to the discord.js v12 documentation. ## About discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to easily interact with the -[Discord API](https://discordapp.com/developers/docs/intro). +[Discord API](https://discord.com/developers/docs/intro). - Object-oriented - Predictable abstractions diff --git a/src/client/websocket/WebSocketManager.js b/src/client/websocket/WebSocketManager.js index 180110637..0cf44ba0c 100644 --- a/src/client/websocket/WebSocketManager.js +++ b/src/client/websocket/WebSocketManager.js @@ -26,7 +26,7 @@ const UNRESUMABLE_CLOSE_CODES = [1000, 4006, 4007]; /** * The WebSocket manager for this client. * This class forwards raw dispatch events, - * read more about it here {@link https://discordapp.com/developers/docs/topics/gateway} + * read more about it here {@link https://discord.com/developers/docs/topics/gateway} * @extends EventEmitter */ class WebSocketManager extends EventEmitter { diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index 4d3366ea9..b48579d9d 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -631,7 +631,7 @@ class WebSocketShard extends EventEmitter { /** * Adds a packet to the queue to be sent to the gateway. * If you use this method, make sure you understand that you need to provide - * a full [Payload](https://discordapp.com/developers/docs/topics/gateway#commands-and-events-gateway-commands). + * a full [Payload](https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-commands). * Do not use this method if you don't know what you're doing. * @param {Object} data The full packet to send * @param {boolean} [important=false] If this packet should be added first in queue diff --git a/src/structures/Message.js b/src/structures/Message.js index 22c854446..bf7216874 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -291,7 +291,7 @@ class Message extends Base { * @readonly */ get url() { - return `https://discordapp.com/channels/${this.guild ? this.guild.id : '@me'}/${this.channel.id}/${this.id}`; + return `https://discord.com/channels/${this.guild ? this.guild.id : '@me'}/${this.channel.id}/${this.id}`; } /** diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index b9aed9dfb..d0cf7c6e6 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -85,7 +85,7 @@ class Webhook { * @property {string} [nonce=''] The nonce for the message * @property {Object[]} [embeds] An array of embeds for the message * @property {MessageMentionOptions} [allowedMentions] Which mentions should be parsed from the message content - * (see [here](https://discordapp.com/developers/docs/resources/channel#embed-object) for more details) + * (see [here](https://discord.com/developers/docs/resources/channel#embed-object) for more details) * @property {DisableMentionType} [disableMentions=this.client.options.disableMentions] Whether or not all mentions or * everyone/here mentions should be sanitized to prevent unexpected mentions * @property {FileOptions[]|string[]} [files] Files to send with the message diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index b63c92aea..1c37157e4 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -57,7 +57,7 @@ class TextBasedChannel { * @property {string} [nonce=''] The nonce for the message * @property {string} [content=''] The content for the message * @property {MessageEmbed|Object} [embed] An embed for the message - * (see [here](https://discordapp.com/developers/docs/resources/channel#embed-object) for more details) + * (see [here](https://discord.com/developers/docs/resources/channel#embed-object) for more details) * @property {MessageMentionOptions} [allowedMentions] Which mentions should be parsed from the message content * @property {DisableMentionType} [disableMentions=this.client.options.disableMentions] Whether or not all mentions or * everyone/here mentions should be sanitized to prevent unexpected mentions diff --git a/src/util/ActivityFlags.js b/src/util/ActivityFlags.js index 40c9e7e16..237ec12e7 100644 --- a/src/util/ActivityFlags.js +++ b/src/util/ActivityFlags.js @@ -24,7 +24,7 @@ class ActivityFlags extends BitField {} * * `SYNC` * * `PLAY` * @type {Object} - * @see {@link https://discordapp.com/developers/docs/topics/gateway#activity-object-activity-flags} + * @see {@link https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags} */ ActivityFlags.FLAGS = { INSTANCE: 1 << 0, diff --git a/src/util/Constants.js b/src/util/Constants.js index e71d46793..0c8f3f8ff 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -74,13 +74,13 @@ exports.DefaultOptions = { * HTTP options * @typedef {Object} HTTPOptions * @property {number} [version=7] API version to use - * @property {string} [api='https://discordapp.com/api'] Base url of the API + * @property {string} [api='https://discord.com/api'] Base url of the API * @property {string} [cdn='https://cdn.discordapp.com'] Base url of the CDN * @property {string} [invite='https://discord.gg'] Base url of invites */ http: { version: 7, - api: 'https://discordapp.com/api', + api: 'https://discord.com/api', cdn: 'https://cdn.discordapp.com', invite: 'https://discord.gg', }, diff --git a/src/util/Intents.js b/src/util/Intents.js index dc85e55b8..e627c8bcc 100644 --- a/src/util/Intents.js +++ b/src/util/Intents.js @@ -41,7 +41,7 @@ class Intents extends BitField {} * * `DIRECT_MESSAGE_REACTIONS` * * `DIRECT_MESSAGE_TYPING` * @type {Object} - * @see {@link https://discordapp.com/developers/docs/topics/gateway#list-of-intents} + * @see {@link https://discord.com/developers/docs/topics/gateway#list-of-intents} */ Intents.FLAGS = { GUILDS: 1 << 0, @@ -64,7 +64,7 @@ Intents.FLAGS = { /** * Bitfield representing all privileged intents * @type {number} - * @see {@link https://discordapp.com/developers/docs/topics/gateway#privileged-intents} + * @see {@link https://discord.com/developers/docs/topics/gateway#privileged-intents} */ Intents.PRIVILEGED = Intents.FLAGS.GUILD_MEMBERS | Intents.FLAGS.GUILD_PRESENCES; diff --git a/src/util/MessageFlags.js b/src/util/MessageFlags.js index f2bccc9a8..536cbd881 100644 --- a/src/util/MessageFlags.js +++ b/src/util/MessageFlags.js @@ -23,7 +23,7 @@ class MessageFlags extends BitField {} * * `SOURCE_MESSAGE_DELETED` * * `URGENT` * @type {Object} - * @see {@link https://discordapp.com/developers/docs/resources/channel#message-object-message-flags} + * @see {@link https://discord.com/developers/docs/resources/channel#message-object-message-flags} */ MessageFlags.FLAGS = { CROSSPOSTED: 1 << 0, diff --git a/src/util/Permissions.js b/src/util/Permissions.js index 6d32527ab..98a283892 100644 --- a/src/util/Permissions.js +++ b/src/util/Permissions.js @@ -80,7 +80,7 @@ class Permissions extends BitField { * * `MANAGE_WEBHOOKS` * * `MANAGE_EMOJIS` * @type {Object} - * @see {@link https://discordapp.com/developers/docs/topics/permissions} + * @see {@link https://discord.com/developers/docs/topics/permissions} */ Permissions.FLAGS = { CREATE_INSTANT_INVITE: 1 << 0, diff --git a/src/util/Speaking.js b/src/util/Speaking.js index 8f819d1d4..5fda560e0 100644 --- a/src/util/Speaking.js +++ b/src/util/Speaking.js @@ -22,7 +22,7 @@ class Speaking extends BitField {} * * `SOUNDSHARE` * * `PRIORITY_SPEAKING` * @type {Object} - * @see {@link https://discordapp.com/developers/docs/topics/voice-connections#speaking} + * @see {@link https://discord.com/developers/docs/topics/voice-connections#speaking} */ Speaking.FLAGS = { SPEAKING: 1 << 0, diff --git a/src/util/UserFlags.js b/src/util/UserFlags.js index 120cb4f16..1aed4ddbd 100644 --- a/src/util/UserFlags.js +++ b/src/util/UserFlags.js @@ -30,7 +30,7 @@ class UserFlags extends BitField {} * * `VERIFIED_BOT` * * `VERIFIED_DEVELOPER` * @type {Object} - * @see {@link https://discordapp.com/developers/docs/resources/user#user-object-user-flags} + * @see {@link https://discord.com/developers/docs/resources/user#user-object-user-flags} */ UserFlags.FLAGS = { DISCORD_EMPLOYEE: 1 << 0,