djs-questions

13317 threads · Page 95 of 267

Can't find out where code needs to be 8 messages
wary thistle Hello, I have been trying to figure out where this piece of code goes in my discord bot directory. In the section of Com...
node @discordjs package
@everyone ping Bug ? 11 messages
mint oriole ```js interaction.channel.send({ content: "@everyone " /* + member.toString() */, allowedMentions: { ...
My ".p [Music]" command isn't working correctly 7 messages
brisk tundra Hi there, thanks for taking your time in helping me. So basically, I have an Discord.js 14 Bot, wich can play music via ...
@discordjs package
get role through data 4 messages
rigid knot I'm saving the data like this:
Listen/check for server boost level drop warning 5 messages
scarlet star Discord displays a warning if a boost is running out or was removed and the server boost level is gonna drop in I think ...
Can i make users that use my bot change the avatar of my bot 4 messages
rare trellis Hi stuff Can i make users that use my bot change the avatar of my bot Without affecting the main avatar of my bot . i m...
Will a Product Purchase That Gives a Member a Role Emit the GuildMemberUpdate Event? 5 messages
calm junco If a member buys a server product, I want to confirm that the GuildMemberUpdate event will emit if they get the product'...
audio player doesn't seem to function 3 messages
balmy shell ```js const audioPlayer = createAudioPlayer(); const audioResource = createAudioResource( "../resources/so...
@discordjs package
ChannelType.GuildCategory 15 messages
nocturne garnet Category channels can hold up to 50 channels; but what happens when you try to add an additional? I'm working on a disc...
Can't find user's voice channel! 9 messages
tepid quail When using `member.voice.channel` it returns `null` and I can't understand why. ```ts export async function execute(int...
node
hope do i do the npm thing it's nto working 33 messages
edgy condor i need help
node
How can i setup a ticket system with a parent category? 302 messages
turbid meadow deploy-ticket.js code: ```const { SlashCommandBuilder } = require('discord.js'); const { MessageActionRow, MessageSelect...
can someone help me with this error 17 messages
fleet wren undefined:9 "premiumLogChannelId": "1156654102047117474", ^ SyntaxError: Expected ',' or '}' after property valu...
Error with registering slash commands in v-14. 14 messages
restive stone i have this code which outputs this error the screenshot (discord said message to big)
voice channel 8 messages
wild sand Why when i fetch a voice channel, and use the voiceChannel.members property, it works fine, but it does not refresh, lik...
Issue with getting Message author 27 messages
rare coral Error: ``` TypeError: Cannot read properties of undefined (reading 'fetch') at Object.execute (/home/container/src/c...
I get a weird error when executing deploy-commands.js 39 messages
turbid meadow error i get: ```Error deploying commands: TypeError: command.data.toJSON is not a function Started refreshing 12 appli...
Discord.js RPC Extenstion Activity Type 4 messages
mighty beacon Hello I'm trying to make the RPC have a place to play the game Listens.. but I can't do it I'm not talking about Discord...
RPC @discordjs package
How can I log slash commands like this: 64 messages
verbal sentinel How can I log slash commands like this: **Command:** mute **Content:** member: @Member time: Time reason: Reason `/mute ...
node
I dont know what this error means 16 messages
turbid meadow the error: ```E:\Discord bots\Custom bot order\events\connect.js:2 const chalk = require("chalk"); ^ Erro...
is there a good way to respond to user dm once 24 messages
devout ivy Say a user dms my bot. I would like to respond to the user a specified message, if met the conditions: If the specified...
node
Getting file size from URL 3 messages
bold marlin Looking to get the file size of a discord video given the URL
@discordjs package
get channel permission for user 9 messages
rigid knot is it possible to check if user has a certain permission in channel for example ```js let ow = message.channel.permissio...
node
How can i do bot have invisible status like d.js docs#1083 12 messages
frozen roost How can i do bot have invisible status like <@348607796335607817>
@discordjs package
Messages Not Sending (No Errors, No 429s) 8 messages
can i get the solution for this 52 messages
lime breach node:internal/errors:496 ErrorCaptureStackTrace(err); ^ TypeError [ERR_INVALID_ARG_TYPE]: The "emitter" argumen...
@discordjs package node
guildCreate event doesn't flag 27 messages
reef whale Hi everyone, i attempted to make a simple whitelist system that checks if a servers ID is in a list of whitelisted serve...
Creation of a channel and adds a role to this channel 12 messages
narrow needle Hello! Sometimes, not always, when my bot creates a new channel for a ticket system, it doesn't add the role configured ...
edit ephemeral embeds 29 messages
full linden I have an ephemeral embed which has one ActionRow with 3 Buttons (Which you can find in the attachment ). The left butto...
node
Can incoming webhooks work directly with the app/bot? 5 messages
lofty nimbus Hi. Is there a way to have a discord incoming webhook work directly with a bot or do you have to work through incoming m...
Invite code field 5 messages
cold sand Is there a way to access this field from the D.JS api? Thanks
Simplifying embed usage 13 messages
turbid oxide Hi, I'm wondering if there is a way to not repeat the full embed builder every time I need an embed ? I already thought ...
I know this question might not be about discord js 2 messages
nimble wolf I am already authorized to add, I would like help with how I can do this from the api using my bot, using oauth2
Circular Dependency Issue 5 messages
stark quest Hey, I'm currently experiencing a weird circular dependency issue. I have 3 typescript files, 1 main file, 1 file to imp...
node
MongoDB cant get an item to be added to a shop schema 4 messages
turbid meadow hi, so basically im very lost, im trying to make it so a bot can have a custom shop with itemName, itemPrice and itemDes...
Reaction on message based logic. 5 messages
hoary meteor Hello! I'm new to discord js, and i'm lost on what i "need". Would love some guidance/links to a guid/docs that can help...
How to receive webhook update gateway events? 6 messages
heavy gorge Hello, I'm trying to receive webhook events through the code below: ```ts import { Client, Events, GatewayIntentBits } ...
AutoModerationActionExecution does not trigger 6 messages
onyx wasp When someone says a blacklisted word it gets deleted by autoMod but the event does not trigger. code: ```ts import Disc...
deno
Meme Bot 11 messages
lost hound I'm making a meme bot for my friend thats essentially a "Messi Bot" and whenever someome says ronaldo w or ronaldow, it ...
"invalid string length" error 7 messages
balmy shell full code: ```js import discord from "discord.js"; import fs from "fs"; export default { name: "commands", descript...
@discordjs package
await not behaving nicely after displaying a modal 19 messages
still spoke Very silly question relating to async/await. After I display a modal, I collect the input using: ```js var submittedMod...
Connecting to a website 2 messages
outer karma Is there a way to use discord to login to a different website, im asking here cause idk if we need a bot for that or the...
dev release
Process exited with code 1 3 messages
sour swallow <:waveBoye:985607731417329674> Hello! I have a tiny problem, I'm not sure If It's much of a problem tho. I can still run...
ModalSubmitInteractionFieldNotFound 18 messages
vital scarab This error appear in ALL modals (after new updates). Why might this error appear? This happens when sending data throu...
Modal submit, 2d time, crashes app 9 messages
hoary meteor ```js const { SlashCommandBuilder, ActionRowBuilder, Events, ModalBuilder, TextInputBuilder, TextInputStyle, Interaction...
client.rest.queueRequest() 13 messages
somber vessel Does anyone have a example? I can't get it to work
@discordjs package
Is it possible? 2 messages
valid sinew We run a coding course where we provide lectures and 24*7 doubt support. We wanted to implement a way so that our mentor...
ESlint error 4 messages
rare rain I am getting an error from ESlint in the following code: ```js const channel = client.channels.cache.get( data.sugges...
How can I get emoji ID? 18 messages
vale crow For example 📢 with \ in front does not yield anything, please help
Interactive Button Data 2 messages
mint oriole I want to make my Button label interactive but somehow it doesnt change when the variable changes: ```js const el = {pow...