djs-questions

9202 threads · Page 133 of 185

Save an attachment from command 51 messages
half spoke How would I save an attachment from an attachment option into a folder inside the bots source?
Djs doesnt reconnect 50 messages
vale oxide I got a weird error where djs tries to reconnect but fails, and then just remains offline. When I try to restart it, it ...
ActionRowBuilder errors 4 messages
barren vigil I am getting type errors that I really can't seem to wrap my head around. I am trying to call `interaction.reply()` on ...
Channel Update Event 11 messages
gusty thistle Is there any way, to find out which user moved a channel from one category to another?
storing images for output 9 messages
random terrace I'm making a bot rn and I'm using the string for message links to post images on like embeds and stuff. But I got a good...
Slash Command, setName() doesn't allow many of characters 21 messages
willow hare `discord.js ver. 14.11.0` I'm using slash command and when it went to StringOption's setName(), I found that some speci...
@discordjs/ws WebSocketShard#connect not resolved when resuming 5 messages
formal spear When resuming session. this doesnt seems resolved. because it waiting for ready event. https://github.com/discordjs/disc...
998292157150535700
Issue regarding bot connection to discord server 25 messages
autumn pagoda ```js const { Client, Events, GatewayIntentBits } = require('discord.js'); const { TOKEN } = require('./config.json'); ...
AttachmentBuilder and MessagePayloads 5 messages
obsidian magnet I tried to read the source code on attachment builders and the files option for when sending a message but I just don't ...
Creating a new Forum Post 13 messages
crisp pebble Hey, I’ve seen the other posts but didn’t get it to work for me. Can someone send me a finished code snippet of fetchin...
Shard Connections 40 messages
keen kiln I am using Discordjs v14.9.0 Since 2 days, randomly my bot gets disconnected from Discord API, after x numbers of hours...
clear command error 1 messages
steep marlin ```js const { PermissionsBitField } = require('discord.js'); module.exports = { name: "clear", async code(client, m...
Votes on reactions 12 messages
glossy frigate Hello to all. I warn in advance, not being English, I hope the translation will be correct. I'm not very good in JavaS...
throw new Error("Expected a voice channel"); 8 messages
hollow saddle Error: Expected a voice channel at _Player.play This error is showing while I try to invite a bot to voice channel....
TypeError: Cannot read property 'FLAGS' of undefined 10 messages
keen sentinel const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); ...
Running 2 differents files on the same bot ? 15 messages
sacred dirge Hello, i have multiple /command on the same Bot, one of them use collectors and i would like to separate this command fr...
Can I store and fetch notes on users like the Discord client? 13 messages
bright patrol Discord, the app, has the ability to store "notes" (see attached image) about users by clicking on their profile and scr...
Modal 8 messages
frail thistle Hi, is it possible to make a modal appear by pressing a button using discordjs v14.11.0?
Music not working after playing another audio on different channel 6 messages
hollow tinsel Hello when I type the command /play accueil it works everytime but when I type /play audio lien <link> after, it does no...
`interaction.guild.members.fetch();` throwing an error 15 messages
novel gust Hello, so I'm trying to fetch guild members but for some reason I get an error. Any ideas why? `await interaction.guild....
Message filter not returning embed 3 messages
pallid helm After it asks for the message, the bot doesn't send the next embed. https://pastebin.com/9hMh2xXm Any ideas?
setPresence not working 6 messages
tawny mica I keep trying to set a presence using setPresence: const { Client, Events, GatewayIntentBits, ActivityType } = require(...
Migrating to V14 with TS (interaction.options) 6 messages
tardy folio ```ts interaction.options.getString() ``` ``` Property 'getString' does not exist on type 'Omit , "getMessage" | "getFo...
How do I access custom emoji from my support server? 3 messages
dapper iron How do I access the emoji of the support server instead of having to add custom emoji to each server my bot is in? curre...
command wont reply 4 messages
dusk sable The ping command wont reply with "Pong!" when someone runs the command. Code: ```javascript const { SlashCommandBuilder...
how to share values between event file and command file? 4 messages
unreal kayak so say i have variables in the execute function of a slashcommand, now lets say when this slash command is executed a bu...
TypeError: channel.isText is not a function at InteractionCreateAction.handle 5 messages
frozen mesa Running v13, not understanding why this isn't working.
const commands = []; help 9 messages
dusk sable I dont really know what or how to put the command files in the brackets because it dosent really demonstrate how to in t...
Select Menu 25 messages
nimble wolf would you have an example to send me about this type of select menu in js
Get message id from an interaction 17 messages
carmine heart When I press a button I want to get the message id of that button in my `interactionCreate` event
Testing Slash Commands / Events 5 messages
coral sparrow What is the general approach to testing commands and events? I'd like to test how my bot responds to specific slash comm...
Command not running despite meeting the requirements 7 messages
fleet mesa ```js .addStringOption((option) => option .setName("rank") .setDescription("Your respective ran...
Undefined fetchReply 29 messages
hard idol Hello, I have this error with this code but I never had it and I didn't found anything on Google (I have 10 buttons and ...
having a button delete the message it is attached to 14 messages
mild meadow i have a button that i want to delete the embedded message it is attached to when clicked because the users do not have ...
Djs variable question 14 messages
hallow briar So I got system setup with embeds and drop down options, and I need the drop down options which the user choose and then...
Get Current User Voice Channel 6 messages
proven gyro How do I get the voice channel that the user is connected when slash command is executed? @discordjs/core v0.5.2 node v1...
998292157150535700
Is it possible to set different permissions for SubcommandGroups? 2 messages
sick meteor Using `.setDefaultMemberPermissions` is not usable for regular subcommands, but im asking if you can set different permi...
how to make the bot to send error logs via private chat to you 6 messages
faint dew Hey! Is it possible for the bot to print error messages in full to me inprivate chat or on server for documendation?
register slash commands doesn't work 7 messages
fleet marsh hello i used snippet from discordjs.guide for register slash commands, exactly this https://discordjs.guide/creating-you...
collection.equals() doesn't seem to be working 22 messages
analog saddle Here are my two collections. ```js Collection(1) [Map] { '962952553744728107' => { announceNowPlaying: true, a...
Time not processing 13 messages
strange wraith Hi, can someone help me with a bug in the code? If I put 2m or 2d or 2w the bot takes all of them as 2s.
ChannelOverWrite bug? 2 messages
barren cobalt When I create a channel, I want to set the permissions in it, but the father does not throw any error and refuses to set...
automod isn't updating by the bot 18 messages
rough hedge ```js rule = await guild.autoModerationRules.create({ name: `Block profanity, badwords, bad content and slurs ...
Difference in server numbers 6 messages
untold imp Why is it that discord directory shows that my bot is in more servers than the client.guilds.cache.size does?
post using a webhook 3 messages
indigo jasper Hello, may I ask how can I post messages in a post using a webhook? Are there any convenient tools that I can use direct...
Memory Leak 6 messages
outer latch Node v18.13.0 Original thread: <#1103593538802941982> I've updated d.js from v14.7.0 to v14.10.2 few days ago and start...
Button role system 6 messages
deep ledge I'm making a button role system where users dynamically add button one by one, using a slash command, but the problem is...
Larger Emojis? 2 messages
hexed zealot I'm trying to make our bot facilitate a game of mahjong for my friends and I, but I am having trouble displaying the til...
how to make a premium system 21 messages
sterile plank i want to make a premium system like mee6 and dyno + more but im unsure how can someone help me out with an way to do it...
Trying to make an advanced poll command 10 messages
full bison The command I'm trying to make allows the user to input custom options for a poll and have support for several options. ...