djs-questions

9202 threads · Page 111 of 185

why doesn't he find a role? 44 messages
opal wolf it button: ```js case "ok-ok-ok": channel.send({ embeds: [ ...
why doesn't he find a role? 1 messages
opal wolf ```js case "ok-ok-ok": channel.send({ embeds: [ ...
Interaction replying with string works but doesn't work when I return a button 15 messages
terse swift Hey, I started creating a discord bot. It returns a link for the user to click on but it's pretty ugly so i wanted to mo...
Dont understand the guide 8 messages
wet folio so im tryna learn how to code a bot discord but i need several help haha... so im at that screen in the steps, and i don...
Cannot read properties of null (reading 'id') 14 messages
rare reef Hey, so I have a code that worked everytime, but now not longer... Version: 14.11.0 ```/home/container/src/commands/gue...
Typescript: Missing type guard field for button components? 2 messages
nova harness Code example: ```ts import { ButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData } from "dis...
How can I change the status from "playing" to "listening" using the `discord-rpc` npm package? 20 messages
static garden I'm adding rich presence to my application, however it's not a game. How can I replace the text that says **playing**, a...
1003448629866020986
Help with @discordjs/core - interactionCreate argument passing 31 messages
warm bobcat Hello, So decided to use `@discordjs/core`. However when I went through the docs and got to the point where the `intera...
998292157150535700
Hyperlink mask as a chat message works in certain servers? 9 messages
west grotto Attempting to chat a hyperlink mask in one server may work just fine, but hyperlink mask in another server shows the ent...
ReferenceError: Member is not defined 3 messages
hexed atlas So I am currently trying to use discord.js and ytdl to play music off of youtube, and it's saying that member is not def...
how many / commands can a bot have? and how many context menu commands can it have? same question fo 8 messages
north juniper title says it all
why am i getting this error? 44 messages
opal wolf it code https://pastebin.com/J50NXXY6
Flag like (--help) approach with /slash-command 5 messages
loud wigeon I'm migrating a bot so it can use slash commands, and wonder how to deal with `--help` flags ? Let's say we have a comma...
Error with send files using `@discordjs/rest` 2 messages
rare rain Getting this error while making a raw file and sending it
998292157150535700
Im getting an error that i dont know how to solve 10 messages
turbid meadow error: ```TypeError: Cannot read properties of undefined (reading 'get') at change_status (/home/container/events/cl...
TypeError: isJSONEncodable is not a function 5 messages
tidal yoke Hi! I keep getting this error when i mention the bot: ```TypeError: isJSONEncodable is not a function at C:\Users\A...
Pulling reactions not working when the message has a button attached 82 messages
unique ledge Hello when I run this code I get Collection(0) [Map] {} giving me no reactions to loop through. But when I try the same ...
Can anyone help me with the discord intents 70 messages
turbid meadow i dont know what this error means: ```/home/container/index.js:40 intents: [Discord.Intents.FLAGS.GUILDS, ...
any one help?? 4 messages
snow falcon here
Does internal sharding still exist? 3 messages
high rose I saw it mentioned in the Discord.js Guide, but can't find any reference to it in the API docs.
How can I respawn a disconnected client that was not spawned from a ShardingManager? 12 messages
granite hawk I've noticed after a long time my web-server will still be running but the bot will be disconnected from discord's gatew...
Bot not responding to slash commands 7 messages
neon harness I've just created my bot following the v14 guide. Basically everything is copy pasted from the guide except my bot's tok...
Error from guilds flags (?) 14 messages
wet folio idk why, im still learning yk w a video JS and the how to code a bot, and i just followed every steps into that, to get ...
Buttons 7 messages
urban wasp https://srcshare.io/64bc52f9fa3442a7f7ec6724 The bot sends: `this interaction failed`, no errors on the console.
Weird issues with different computers 21 messages
outer karma So I had an old laptop where i messed around with bots a lot and it worked perfectly fine. I decided to get into discord...
998292157150535700
how to create a simple /modal form command 1 messages
shadow atlas The /modal command code structure should look something like this ```js module.exports = { name: 'ping', descriptio...
getTextInputValue not working :C 56 messages
faint sinew ```client.on("interactionCreate", async (interaction) => { console.log(interaction.fields.getTextInputValue("request...
Delete Channel With Button 80 messages
smoky stag I have this simple function https://pastebin.com/LygHwdrQ which is meant to do the following: 1: You press the button 2...
channel.isTextBased() is not a function 12 messages
rare reef I have a ticket bot but by trying to open a ticket it gives me the following Error: ```0|ticketer-backend | TypeError: ...
message fetching 19 messages
torpid slate ```js const joinMessage = await client.channels.cache .get(docsSetup.ArchiveChannel) .messages.fet...
member permissions to readable format 2 messages
visual widget ```ts const memberPerms = member.permissions.toArray() console.log(memberPerms) `````` [ 'CreateInstantInvite', 'Kic...
intellisense not working 165 messages
steel rover when i write `inv.` it doesnt follow up with any suggestions, like `url` for example
How to create timestamps 5 messages
uneven wasp But how Do I make this into a timestamp ```.addFields({ name: "Date Created", value: `${guild.createdAt}`, inline: true}...
Many typing issues with Typescript 10 messages
latent pewter I am new to DiscordJS, and I keep facing typing issues with Typescript.. There are some examples in the images I tried m...
How to get last messages from a text channel ? 13 messages
ancient galleon Hello, I would like to get messages from the newest to the oldest in a text channel. My way to get the oldest: ```js co...
I want to ping a role from config.json with discord.js 33 messages
umbral dove Do I have to do it like this Ex: <@&{congif.ownersRoleid}> ??
Custom identifier for fields 3 messages
magic imp is there a way to set a custom field identifier for embeds? or are you limited to just the name field?
setPresence of the bot but it's not visible 7 messages
quiet drum I don't have error.
1003448629866020986
How to make Typescript recognize type files 11 messages
royal falcon Hi, I am a beginner developing in Typescript. I am trying to create a bot that can use commands using `client.commands...
Unknown interaction 5 messages
mellow harness The idea is to use a slash command to run a separate js file, which would reduce hunger and thirst. If any of the two ar...
Embed: Wrong image in iconURL 5 messages
jade vector Hello! I'm with Typescript. I generate my image using my GitHub repository, so I just need to push to it and use `https...
slash command type issue 12 messages
visual widget `./lib/types/command.ts`: ```ts export type Command = { category: Category data: SlashCommandBuilder | SlashCommandS...
Vouch 4 messages
snow falcon I need a discord vouch bot /vouch /check vouches /vouch leaderboad
Guild#disableInvites returns 403 5 messages
lone flame Hello! I am trying to enable disableInvites, but every time Guild#disableInvites is called, I get a missing access error...
Get all users which have permission "Connect" on false in a specific voice channel 2 messages
sterile cedar The goal is to create a list of all users which have permission "Connect" on false in a voice channel... Still no idea?...
this interaction failed 6 messages
last lantern idk for some reason one of my button on my embed doesnt work , i tried almost everything for straight up several housrs ...
Get All users banners 33 messages
buoyant basin So im trying to get all banners of server members.. what im doing is fetching all members `let members = await guild.mem...
Upgrade help from 11.3 to 14 4 messages
keen ivy Guys help me please upgrade my index.js file, it written in 11.3 version, for that I get error : require('dotenv').confi...
do not remove the role 2 messages
opal wolf I don't know why, but it doesn't take a role, and it should. https://pastebin.com/xgayACxE it code
How to create an event that fires on express server PUSH 2 messages
thick hare I am creating a discord bot that will allow me to verify a player in my mobile game when a player enters their discord ...