About 103 results
Open links in new tab
  1. Introduction | discord.js

    How to get a bot up and running from scratch; How to properly create, organize, and expand on your commands; In-depth explanations and examples regarding popular topics (e.g. components, …

  2. Webhooks | discord.js

    You can obtain the webhook id by looking at its link, the number after https://discord.com/api/webhooks/ is the id, and the part after that is the token. Using the WebhookClient constructor

  3. Parsing Options | discord.js

    String, Integer, Number and Boolean options all provide the respective primitive types, while User, Channel, Role, and Mentionable options will provide either the respective discord.js class instance if …

  4. Message Embeds | discord.js

    Message Embeds ... Embed preview ... Using the embed constructor discord.js features the EmbedBuilder utility class for easy construction and manipulation of embeds.

  5. Buttons | discord.js

    const button = new ButtonBuilder() .setLabel('discord.js docs') . setURL ('https://discord.js.org') .setStyle(ButtonStyle. Link);

  6. Interactions | discord.js

    If your event handling has been setup in multiple files as per our event handling guide, you should already have an events/interactionCreate.js file that looks something like this.

  7. FAQ | discord.js

    Discord validates and resolves user ids for users not on the server in user slash command options. To retrieve and use the full structure from the resulting interaction, you can use the …

  8. Gateway Intents | discord.js

    You can do this in your verification application or by reaching out to Discord's support team, including why you require access to each privileged intent. ... Discord made them opt-in so users across the …

  9. Select Menus | discord.js

    const { ActionRowBuilder, StringSelectMenuBuilder, StringSelectMenuOptionBuilder, SlashCommandBuilder, } = require('discord.js'); module.exports = { // data: new …

  10. App Sharding | discord.js

    First, you'll need to have a file that you'll be launching from now on, rather than your original index.js file. It's highly recommended renaming that to bot.js and naming this new file to index.js instead.