djs-questions

9202 threads · Page 51 of 185

Nested message component collector not firing 31 messages
atomic elbow Can anyone help me with this? Response from second button not firing ```ts private async handleComponentInteraction(ta...
Extending GuildMember 7 messages
worn pollen Hey, Is there a way to extend guildmember to implement custom methods?
1150878580193116250 998292157150535700
Error 35 messages
somber dew so I have been trying to create a discord bot using discord.js. Upon creating the bot, i realised there were some errors...
1150878580193116250
''Sorry, name can only contain URL-friendly characters'' 3 messages
spring horizon When I try to install the library it gives this error
Permissions 40 messages
jolly ravine How can I check whether a specific user has, for example, a manage guild on the corresponding server?
This interaction failed 6 messages
nimble relic ```js const handleTicketCloseButtonClick = async (interaction) => { console.log('Нажата кнопка Закрыть тикет'); ...
Failing to trigger collector 5 messages
bitter bloom Console Log: ```Message component collector created Collect event handler added``` When I click a button discord respon...
Odd issue with client not being detected. 14 messages
hardy briar So I'm running into an issue with a function I made to check the permission of a user in a guild. It says the client is ...
getInteger('amount') 27 messages
viral nest can someone help me, why this doesn't works? ty module.exports = { data: new SlashCommandBuilder() .setName('c...
Private message transcription problem 13 messages
bright inlet Hello, I have a problem that I do not understand, when I click on the "Close" button to close the session (therefore del...
Shard takes too long to get ready 22 messages
solid moth On my console, my bot is remaining offline and not starting and it says "Shard 0 took too long to get ready." No other e...
const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD 6 messages
hearty fulcrum how do i make a client with the same intent flags in v14
Having discord API errors when refreshing commands 10 messages
craggy stratus Using 14.14.1 of discord.js I have my commands in a separate folder and when discord tries to get the "name" and "desc...
Sorting Error 8 messages
weary kayak Hello I have a Vouch Bot (Reviews Bot) And I am making a leaderboard to see the top vouches(reviews) a guild has The th...
connect ETIMEDOUT 4 messages
broken dome request to https://discord.com/api/v10/applications/1229730382845579277/commands failed, reason: connect ETIMEDOUT 199.5...
host problem 1 messages
tiny dragon i made discord bot with my friends but cant host it <#1115899560183730286>
1150878580193116250
Trying to get Client from ShardingManager for Test Suite 39 messages
pliant hatch Hello! I'm trying to create a test suite for my Discord Bot. I had a working version without sharding, but once I add...
1150878580193116250
Intents 26 messages
teal sapphire ``` GatewayIntentBits.Guilds, ^ TypeError: Cannot read properties of u...
How do i right that into V14 3 messages
teal sapphire ```const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, ...
Trying to read channels name after it's deleting 7 messages
mighty pelican How can i fix this error: { name: "Kanaal:", value: `> ${interaction.channel.name}` }, ...
discord rest error 50035 5 messages
novel cosmos ```DiscordRESTError [50035]: Invalid Form Body options.20.options.0: Expected an object/dictionary. at RequestHand...
1150878580193116250
ReferenceError: rest is not defined 6 messages
viral nest const { Client, GatewayIntentBits, EmbedBuilder, ActionRowBuilder, ButtonBuilder, MessageSelectMenu, Rest, Routes } = re...
Conditional display of Button Components in Text Channel (based on user role?) 4 messages
safe sorrel I have a couple of buttons: `const queueButton = new ButtonBuilder() .setLabel('Join Queue') .setStyle(...
998292157150535700
Error with slash command 43 messages
worthy oracle I get error addSubcommand(command => command.setName('add').setDescription('Add a reaction role to a message.').addStrin...
1150878580193116250
How fix this? 8 messages
coral vortex /root/panel/node_modules/@discordjs/rest/node_modules/undici/lib/web/fetch/response.js:531 ReadableStream ^ Referen...
1150878580193116250
Unknown Interaction 4 messages
hazy summit I've tried many times but the error still persists
How can I make it so that when users are blocked from accessing the bot, it leaves their server? 40 messages
remote oracle I read the Guide where it's explained how to block access to the bot for a specific user. But is there a reverse possibi...
DiscordAPIError[40060]: Interaction has already been acknowledged and Unknown Interaction 13 messages
languid torrent Hey, So I tried to start my bot up and use a command and when I tried to use it, it will reply to the / command and then...
Cloning a SlashCommandBuilder 30 messages
thick comet Is there a way to automatically clone a SlashCommandBuilder? Its constructor is empty and there's no clone or .from() me...
Sending an Embed with a Base64 Image 7 messages
keen shale Is there a way to attach an image to an embed that's base64 encoded? Or does it have to be uploaded somewhere first? Th...
998292157150535700
cant install npm discord.js 18 messages
pallid hamlet i cant install discord.js on visual code my error is ``` npm : The term 'npm' is not recognized as the name of a cmdlet,...
TypeError [InvalidType]: Supplied parameter is not a User nor a Role. 15 messages
tight star Hey everyone, running into a weird error trying to create a channel with specific permissions. ```ts const channel = a...
Deno / Websocket error 39 messages
atomic oracle To start with, as I understand it, Deno is not officially supported. That said, from what I have been reading, it seemed...
1150878890307358882
"The activity is over..." message displayed when my bot is not managing it 10 messages
floral holly Hello, I don't know what I did to get this but recently my bot has been displaying a disabled message "The activity is o...
Bot permission in channel 6 messages
queen glen I'm trying to get my bot to check if it has permissions to send a message in a channel. It will mainly be for text chann...
hello im really lost rn i dont know nothing about js or node js and i want to learn how to install 2 messages
thorn hearth prog from git hub plz help
My bot doesn't get the full list of channels on a server 75 messages
delicate bay Hi there! I'm working on a bot that posts messages in a channel and I've just noticed that this functionality no longer ...
1150878580193116250
Distube 2 messages
unique dust ```js client.on('messageCreate', async message => { if (message.author.bot || !message.guild) return ...
Error with module 5 messages
wary loom I try to install discord.js and if I start my bot then I get this error ReadableStream is not defined
998292157150535700
Only enabling certain users to answer a poll 4 messages
vagrant rapids Looking at the PR the only data given from the vote added and vote removed listener is the answer and userId. I'm trying...
working with audit logs ( problem with MEMBER_UPDATE") 10 messages
cunning glade i'm stuck since 2h trying to fix this .. xd #v14.14.1
1150878580193116250
Develop with Entitlements 3 messages
mellow hemlock Has anyone an Idea how to delevop with the new Entitlements? I do not want to code on my live Bot with 600+ users. And o...
How do i set permission override 22 messages
open atlas Im trying to do ```ts channel.permissionOverwrites.edit(roleId, { ViewChannel: false });``` but seems like permissionOv...
i have a doubt is the intent fuction update in v14.5.0 ? 17 messages
hearty fulcrum const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES ] });
1150878580193116250
Best way to get StringSelectMenuInteraction value from ButtonInteraction? 13 messages
coarse sigil I have a StringSelect and a Button as my components. I want the user to select a value from the StringSelect, and then p...
Guys can i run my old code in discord js still? 33 messages
iron frigate Basically, some years ago i made a bot and now i'm trying to bring it back to life without rewriting the whole structure...
1150878580193116250
Random errors after running `npm update` 76 messages
shy widget I accidentally ran npm update in one of the repositories I'm working on (I'm using nodejs v18) and now I just get a bunc...
AutoComplete Problem 5 messages
rancid tartan before:- ```ts async autocomplete(interaction: AutocompleteInteraction) { const focusedValue = interaction.o...
1150878580193116250
Property 'getUser' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType> 5 messages
jovial raptor Why is this happening when i try to get the user from my slash command option like this? ```ts const user = interaction....
data.poll.question[POLL_MEDIA_CONTENT_MISSING]: Poll media must include text, an attachment, an emoj 4 messages
quaint loom What am I doing wrong? Don't mind the would-you-rather question 😅 ``` { question: 'Would You Rather:', answers: [...