djs-questions

9202 threads · Page 63 of 185

Creating emojis promise doesn't resolve 6 messages
patent epoch ```ts progress.push("Creating emojis..."); msg?.edit(progress.join("\n")); try { await Promise.all( data.emojis.ma...
what should I do if I want to print the string that the user entered in the discord chat ... 10 messages
rustic jewel client.on('interactionCreate', (interaction) => { interaction.reply(????) });
Missing permission on creating channel 7 messages
thick talon Bot is able to create category but fails when creating channel. I have give manage Channel permission to bot. here is ap...
1150878580193116250
Property 'id' does not exist on type 'APIGuild'. 13 messages
junior hare via Discord-Api-Types package, latest, I am receiving the type error: ``Type error: Property 'id' does not exist on type...
998292157150535700
Set activity with user ID 4 messages
ornate solstice Hello everybody. I'm coding something related to Discord presence. And I already created a full design for the project ...
The maximum limit for a bot to enter a server 13 messages
twilit oak Hello, I just returned to program bots, but I just want a special command in the limit so that the bot enters a server a...
1150878580193116250
Error validating bot token: InvalidArgumentError: invalid Authorization header 45 messages
zenith lava Hello sir i'm facing suddenly new djs error in v14 when i try to login into the bot and i'm sure 100% all intents enable...
reply to message with channel webhook 9 messages
raw raptor Is it possible to use Webhook.send() to reply to a message in the same channel? I followed the docs and it makes it look...
"Started refreshing 0 application (/) commands." 7 messages
eager rune Hello! I'm having trouble with a really stubborn issue in my code and I'm honestly pretty stumped. I have a minimal, but...
Modal submission help 58 messages
grand ledge I am trying to make a modal that asks for your minecraft username and then put it to the database. The modal opens suc...
1150878580193116250
can someon help me with a bot discord (discord.js node) 41 messages
vocal silo I created a discord bot in node, and for the ",ping" command it sends the same message 3 times... can it be solved? I ca...
I'm trying to make my Discord Bot Reply when a user sends an Image in Chat 9 messages
proud sundial I have a working discord bot that responds to people and I'm even getting it to tell me the weather and time of a specif...
Can you use variable in embedBuilder name and description? 9 messages
grand ledge I have a embedBuilder instance and It doesn't seem to work. const embed = new EmbedBuilder() .setTitle(name) ...
1150878580193116250
Bot stopped working 13 messages
stiff jacinth my bot suddenly stopped working, it says 'application did not respond' when i try to run any command without showing err...
1150878580193116250
How to get the user id, username, nick when mentioned by another user 18 messages
onyx raven I tried `m.mentions.members.first()` but to no avail it didn't work as expected due to the `mentions` property being `un...
998292157150535700
Shifts logs 13 messages
wet barn Hello, I've been thinking of adding a command to my bot that logs people's shifts. The concept is that when someone run...
1150878580193116250
DiscordAPIError[10008]: Unknown Message 59 messages
left folio } /root/bots/Synth/node_modules/@discordjs/rest/dist/index.js:640 throw new DiscordAPIError(data, "code" in data ?...
im still new to all this and cant install node.js to discord and need some help if possible 2 messages
sudden remnant im sorry for asking this but all videos are so confusing and dont show all the steps
1150878580193116250
member.setNickname or member.roles.add occasionally not working 9 messages
drowsy grotto Hi all, What reasons are there for a nickname potentially not being applied, or a role potentially not being applied? ...
1150878580193116250
I have an error in my bot 4 messages
river ore Hello, sorry for the inconvenience, but I have a problem with my bot, since it turns off due to an error, for which I do...
Button Question 9 messages
ebon sapphire How can i make a button never expire?
Commands not refreshing after being correctly deployed 7 messages
mint dagger Good evening. I'm developing a discord.js bot using typescript. I am having trouble using my deployed commands. To clari...
guild.guildScheduledEventUserAdd event failing to fire consistently 2 messages
inner kraken I am having an issue with the guildScheduledEventUserAdd event. It seems to trigger sometimes but when I create a new ev...
1150878580193116250
Where do I start from? 3 messages
rotund oxide Hi, Can y'all share some helpful resouces with me so that I can understand and learn about npmjs?? Thanks in advance.
1150878580193116250
Help me pls 11 messages
deft moon Code: Error: `[WARNING] The command at C:\Users\OE104655\Videos\Eendsmp bot\commands\utility\giveaway.js is missing a r...
Help me pls 4 messages
deft moon Idk whats wrong with this line of code: `const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBi...
is it possible to run command 1 from command 2 3 messages
deft moon so like command 1 is /embed title: description: And i want to run that command with pre-set values from /announcements
How do I add a role with discord.js 3 messages
desert fractal ```js const target = interaction.options.getUser('target'); const role = interaction.options.getRole('role'); ...
check if role is set to certain role ids 6 messages
desert fractal how do i check if the role is set to certain ids? ```js const role = interaction.options.getRole('role')...
How do you turn on a discord bot? 10 messages
rare silo It ain't on
TypeError 21 messages
warped wind Code: `const guild = bot.guilds.cache.get(process.env.GUILD_ID);` Error: `TypeError: Cannot read properties of undefi...
Modal — Pagination 5 messages
jade vector Hi! To construct my bot, I wanted to use modals allowing user reply. But my number of fields is more than 5. It's is po...
1150878580193116250 998292157150535700
duplicated interactions 10 messages
keen sequoia okay i need help, because i have been hititng my head against the wall abt this for days. my interactions keep doubling ...
Messages: combining selectors and input fields 1 messages
haughty wave Hey, Is it possible for example with modals or messages to have a combination of inputs for free text and selectors? (su...
Set embed color to the role color for the bot? 3 messages
solid island Is there a way to set the color of an embedded message to the color of the bot's primary role in a server? I have a bot ...
1150878580193116250
when i send a post in a media channel, i get the threadCreated event but not the messageCreate event 6 messages
amber thunder the discord API claims you're supposed to get a `messageCreate` event, as the message isn't created at the time the thre...
986538542350086175
I need help applying functions to my discord bot. 113 messages
desert fractal Here is the code block for the function of confirm: ```js if (confirmation.customId === 'confirm') { ...
Help to send a message in another channel 5 messages
glass dome Hello everyone, I'm developing a Discord bot with Discord.js 14.14.1 and I'm encountering a problem. (use Typescript) ...
I don't know how to fix it 36 messages
little forum Generally I don't know how I can define emved at the beginning. error: TypeError: Cannot read properties of undefined (r...
Bot will not push new commands to server 32 messages
surreal nova Cant access commands I make froem the server.
Error DiscordAPIError[50001]: Missing Access 12 messages
lone owl Code: ```js async updateInvites(guild: Guild) { const vanity = await guild.fetchVanityData() if(vani...
/embed not working 10 messages
deft moon Code: ```const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() ...
Deprecation Warning (VSCode) 3 messages
wary cloud Getting an issue with the `punycode` module. ```(node:22123) [DEP0040] DeprecationWarning: The `punycode` module is depr...
Opening modal causes an error message in chat but submission works as expected 2 messages
drowsy coral Code is written using discord js v14.14.1 The code works to show the modal and it handles submission properly and return...
Not Specifically DJS but Discord Related 1 messages
oblique sorrel Picked deno tag cuz dinosaur :) Trying to make a thing in java that I submit to my college's autograder, and have it se...
1150878890307358882
Ping Bot 7 messages
grizzled delta Guys, I can't seem to get the correct values, for example Discord API value is not good at all, it is displayed at -1ms,...
help create my discord bot on nodejs and discord.js 8 messages
mossy hound my code ``require('dotenv').config(); const { Client, Intents } = require('discord.js'); const client = new Client({ ...
Remove All Rection Detection 5 messages
gloomy flame is there any way to detect who remove all reactions from a message?
Need Help for Fetch Ban CreatedAt 7 messages
static light ```js const { Events } = require('discord.js') module.exports = async (client) => { // UNBAN COMMAND client.o...
Correct 'type' for Interaction Object? 12 messages
torpid marsh Hi, I'm trying to find the correct type/interface for the Interaction object which is sent by Discord to my endpoint usi...