djs-questions

9202 threads · Page 101 of 185

Twitter streaming 6 messages
restive garden Hi, I am trying to add a command to my bot to monitor some twitter/X accounts. The operation is very simple, when a user...
Category isnt private ? 4 messages
half ember ``` const eventCategory = await interaction.guild.channels.create({ name: ":dagger: " + interaction.options....
Does anyone know why this is happening? 4 messages
harsh bramble The bot isnt doing anything no commands have been run seems to just randomly throw this error ``` RequestAbortedError [A...
give the javascript code 36 messages
molten torrent make a command name /trade required two details offer and request and make the embed with a button name" trade" if user ...
Bot Discord V14 - Ticket System 13 messages
valid dawn Hi, I'm working on a ticketing system, including ticket management (deleting, closing...). I'm making a transfer system ...
edit ephemeral message without access to interaction object 6 messages
unreal dew ``` // example code const message = await channel.messages.getch(messageId) message.edit({content: `The voice channel l...
about me 5 messages
jaunty current how to exchange about me for my bot token
client.getChannel() only returning a response twice 1 messages
remote grove i am using the discord-rpc node module, i have this function that is executed 5 times but the "then" part of the client....
1003448629866020986
1. Is it worth it to switch from DPY 2. How long would it take me to have a decent knowledge(JS&DJS) 3 messages
loud laurel I've been a developer for years but I mostly do it as a hobby I know Lua and python and I worked with DPY I wanna learn ...
buffer.File Warning 18 messages
nocturne goblet When I try to send an attachment file this error shows ```bash (node:26404) ExperimentalWarning: buffer.File is an exper...
DJS RPC 7 messages
vale burrow ```js const RPC = require("discord-rpc"); const rpc = new RPC.Client({ transport: "ipc" }); const { RPC_CLIENT_ID, A...
1003448629866020986
Creating a message based on Roles 2 messages
edgy fox I'm trying to create a message which is essentially a lineup of all players. I'm trying to do this task by fetching thei...
permissions 11 messages
flint anvil I need to give my bot perfect permissions and I know which to opt in for, but Idk what "use embedded activities" does, i...
How can i make a captcha system like this? 3 messages
terse finch I want to make a captcha system so that people can't just add an auto typer or macro to get inf. money
discordjs/voice & Basic HTTP Authentication 3 messages
pliant kernel Howdy, Can I pass a username and password to `createAudioResource` to satisfy basic http authentication? Or do I need ...
Can't join voice channel 17 messages
manic pond I am making a background music bot that joins a voice channel and plays, well background music. I copy-pasted the code f...
Cannot schedule event in the past 12 messages
red gyro I gave this argument when creating my scheduled event: ```scheduledStartTime: timestamp``` The bot wrote this date in th...
Message.startThread: Missing Access 5 messages
red gyro I'm doing something like this: ```js const client = new Client({ intents: [ // How many flags do I need to start a...
Userinfo Command 17 messages
torpid holly ```js if (check) { const user = await args.pick("member").catch(() => message.member.user); const joined...
train a bot 3 messages
stiff geyser hey, I have an image generator bot, but I want to train this bot to give better quality and results according to the des...
Interaction/Button question 4 messages
crystal rampart I have a quick question regarding interactions/buttons; If I post an embed with a button attached to it using Bot A, ca...
Editing Message Rate Limits 5 messages
drowsy crest Hey there, I noticed some interesting behavior when it comes to editing messages that I had some questions about. I noti...
invites 6 messages
flint anvil how can I get invite links of servers my bot is in?
Message Username 4 messages
tawdry crater Hello, people! Is there a way to send messages using custom usernames and pfp urls? something like `channel.send("messag...
Invite a Guest 3 messages
restive thistle I was just wondering if discord.js has a method for inviting a guest to a specific discord voice channel yet.
AbortError 2 messages
sleek shuttle Sometimes i get this error message, i want to know why this error occurs and how can i solve this ```AbortError: Request...
@discordjs/opus issue when rebuilding for electron 5 messages
bitter steppe ```javascript const { OpusEncoder } = require('@discordjs/opus') ... /* decode raw OPUS packets into raw PCM/interleave...
Discord refusing to add user to channel when channel is moved to another category 8 messages
silver totem Im honestly not even sure what to do anymore iv tried a lot of different methods and none seem to work. In short i have ...
Slash command channel types 7 messages
queen glen Is it possible for me to filter out channels that are shown in the options by type. Here's my code: ``` .addChannelOptio...
Start Error: "The user aborted a request" #9804 7 messages
loud elm Hey guys. From yesterday to today, my bot started having problems starting. I read about it and maybe it's because Disco...
how can filter roles by bot role in guild 6 messages
severe rivet Hi I want filter guild roles by bot role in guild
why am I getting those errors? 10 messages
woeful osprey all I have in code is this: ```const { Client, GatewayIntentBits } = require('discord.js'); const intents = new Gatewa...
Updated my bot to the latest version of djs 40 messages
dense kernel TSError: ⨯ Unable to compile TypeScript: src/Commands/Developer/emit.ts:56:27 - error TS2339: Property 'getString' does ...
info in component custom id 7 messages
crystal forge Is it good to store some info in component's custom id? For example: I create a button with custom id: `acceptInvite:123...
interaction as user 4 messages
broken dagger Hello, To automate tasks, i would likte to use command slash interaction as my user account. Is it possible after it to...
998292157150535700
Error with Ping command 34 messages
balmy nymph I made a ping command and wanted to go a little further. I wanted to display the bot's ping by executing /ping, but it's...
embeds 16 messages
flint anvil defaultAvatarURL is used for the dafault icon right, how to get the current avatar?
Handle button press without interaction 4 messages
glass tulip I want nothing to happen in the discord clientside after a button press, no followUp, no editing that is visually seen, ...
Detect replies and edit own message 8 messages
red gyro Can I make my bot detect when a user is *replying* to it and then update the message that was replied to? I have a bot ...
Building and running create-discord-bot causes an error 3 messages
spare cedar After some latest commits where crawl moved to picocolors which uses commonjs modules, running built file causes the err...
998292157150535700
Duplicate messages in multiple shards 2 messages
viscid sphinx ``` ws.on('message', async function incoming(data) { const object = JSON.parse(data); let channel = a...
I know the issue but not how to fix it 6 messages
torpid holly ```js File name 'c:/Users/cmart/Desktop/Discord Bots/Sapphire/src/Schemas/Errors.js' differs from already included file ...
quick question about module.export aliases for commands 7 messages
random terrace i have this command with aliase being 'cam' short for campaign, but i have another command that has an aliase 'c', yet d...
Discord.js 2 messages
late verge Interaction has already been acknowledged.
This Library Is Not Handling Member Joins 5 messages
earnest star I've a problem with my member join event handling, by which it only executes after the first member join, but it don't c...
Slash Command redirect 23 messages
hollow mural Hi folks. Looking to create a slash command, that could allow the user to be redirected to an external url in their brow...
ExpectedConstraintError: Invalid number value 8 messages
grand pier Even I can't figure out what he doesn't like
Cannot read properties of undefined (reading 'GuildVoiceStates') 29 messages
random sonnet Cannot read properties of undefined (reading 'GuildVoiceStates')
Guild Member cache doesn't contain all users 16 messages
terse swift Hey, I'm not too sure why but when I check the member cache of a specific guild, I can only see 1 user (My bot account i...
Updating a set of buttons in a reply 1 messages
warped kindle I have the following case: 1. I create a message with a button attached and post this in a channel 2. When the button is...