djs-questions

9202 threads · Page 180 of 185

Is there a way to find the latest message a GuildMember has sent? 9 messages
quasi ibex I have an external program telling my bot to roll a die. That part's fine, but I want to roll said die in whatever chann...
Role command 5 messages
west iron how to make a command that count the ammount of users that has a specific role
How to make a slash command restart a bot 3 messages
dim edge Im trying to make a slash command that will restart my bot but i cant work out how to make the bot interact with Command...
Bot shard questions 6 messages
versed karma I have some questions about sharding: - The discord guild will be receive always the same shard? - How much variation is...
How to add an autofill feature 4 messages
tall mist How do i make it so my bot autofills the paramaters required for it to function?
Send messages 3 messages
exotic coyote How can i send a message to a specific channel from ``Client.on('ready'`` ?
Discord Bot doesn't react back. 6 messages
tired galleon if i type, .ping or ping, the bot doesnt react with pong! const { Client, Events, GatewayIntentBits } = require('disco...
How far back does Message.delete() work? 7 messages
runic quail I want to create a purge command that can go past the two week limit of bulk delete. I would do so by fetching the last ...
interation.update & modal 12 messages
shrewd ice hi, is there an option to disable a button after click and open up a modal?
How do i add a role to a user(user option in interaction) 4 messages
neon timber help me please
Catching Errors 5 messages
delicate marten Greetings, I am trying to catch an error: ``` Error [GuildMembersTimeout]: Members didn't arrive in time. ``` I think I ...
Option player is of type 3; expected 6. 9 messages
wheat rain Unsure why this is happening, I have the guild intent and this is my code: ``` TypeError [CommandInteractionOptionType]...
Discord js v14 Simple code not working 17 messages
red coyote My code: ```js const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { ...
messageattachment with embed 14 messages
granite sand ```js const attachment = new MessageAttachment('././image/spellbook_legendary.png'); let embed_...
How to remove a role to the user who used the command? 8 messages
wicked scroll I am working on a command for lottery in my discord-minecraft server.
Edit Ephemeral Responses 13 messages
narrow crystal I am wondering if it is possible to edit a ephemeral response. So for example, I am currently using ```js await interact...
Spawn shard on specific guilds 4 messages
ember zinc How to tell the shard to only run on specific guild, and rest of the shard runs on other guild?
Slash command choice 3 messages
weak kestrel How to make that is one choice is selected, the bot respond something and if its another choice, its somthing different?...
How to make a 2 choices command? 5 messages
weak kestrel I want to make a 2 choices command and idk how. Here is where I am
Dev Environment with Sharding 11 messages
manic vault Hey, I'm about to start working on getting my bot ready for sharding, but I'm not sure how to go about creating the envi...
can anybody help 25 messages
iron girder ```js const embed = new EmbedBuilder(); try{ fetch("https://www.reddit.com/r/memes.json?sort=hot").the...
Modal interactions 3 messages
west iron what do i place in interactionCreate.js for a modal to work?
Changing nickname of a member depending of the rank he has 10 messages
glass vigil So basicly I want a bot that automaticly adding prefix to a player for example if I give someone rank Verified I want hi...
Seeing if my bot disconnected with voiceStateUpdate 3 messages
drowsy crest How through this listener can I check to see if my bot was in the voice channel prior to disconnecting (so I can do thin...
Server info command 4 messages
weak kestrel How to I make a slash command that respond the Server name, age and the *never expiring* link to join it?
A strange issue with two files not firing (DMs Event and a Command) 7 messages
graceful burrow I've got a pretty large bot, but all runs fine except these two files. The two files in question are an event and a com...
Is there a way to communicate between web and discord.js? 6 messages
lean elbow Hey, the question is in the title. I wanna create a dashboard
One file is imported multiple times 3 messages
vast trench Hi, i have code in my index.ts ```typescript for(const element of fs.readdirSync(`${__dirname}/events`)) { const eve...
Mentions with defer 25 messages
tardy folio How can I mention people after deferring the interaction?
how do i change the restRequestTimeout 21 messages
latent sky hello, i was recently guided to change the restrequesttimeout to fix an abort error, but how do i do that?
how to create a box like this. 5 messages
iron girder it popup when i click the button.then it renamed my server nick name
Add channel permissions without completely overwriting them 14 messages
steel maple I was thinking I could use something like .push to add to the channel's permissions array but couldn't find a way to act...
Typing issue in typescript resolved 13 messages
wide gull Typing problem where it is not allowed to take a channel through the client and send a message directly Only 2 lines of ...
DM user using REST 13 messages
lost coral Hi, I want to send a DM from sharding manager so I made this method ```js async dmUser(userID, payload) { const ...
998292157150535700
making users only press an option once 5 messages
unreal ingot I have a set of buttons with different options and want to know what i could do for preventing them to click the buttons...
How to deploy changes with zero downtime? 17 messages
deft breach Currently hosting on EC2. Thinking of having two directories. One for the current version and one for the new version. W...
Caching 9 messages
tardy folio Would there be an issue if I limit `GuildManager`, `ChannelManager`, `GuildChannelManager`, `RoleManager` and `Permissio...
DiscordAPIError [50001] Missing Access (When adding role) 97 messages
granite flint __What I am trying to achieve?__ Add role with a bot ```js await interaction.member.roles.add(data.sellingRole); ``` _...
change WebSocket port discord.js14.7.1 3 messages
kindred socket ├── @discordjs/rest@1.4.0 ├── @discordjs/voice@0.14.0 ├── discord.js@14.7.1 i need to change the port of the voice Web...
1003448629866020986
so i got a lil bit of code but i cant get the subcommandgroup when i updated to v14 10 messages
dapper saddle so i got a lil bit of code but i cant get the subcommand/group when i updated to v14 ```ts try { commandSubGroup =...
Discord Embed(Fields) Bug 14 messages
fringe sluice Idk why this bug appening, anyone can help me ? Thx !
Many slash commands with the same beginning 3 messages
snow zealot I want to make commands that start with the same name but have different sub-commands. Is this only possible via SlashCo...
is there a way for me to check if an interaction has already been acknowledged 3 messages
tall ferry is there a way for me to check if an interaction has already been acknowledged
How can I get the text channel a thread is in? 11 messages
drowsy crest So, when I do `interaction.channel` I get the thread channel. I was wondering if it is possible to somehow find out what...
ReactionEmoji names and id 5 messages
jagged flame Currently making a reaction role giving bot and im noticing that the default emojis, like 👍 or 😄, only have the name p...
How do I make my bot (wich I coded) stay online 11 messages
sand wolf When I first coded and made it run it was online but when I hopped off for a few hours then tried the same thing it didn...
Issue with messageCreate event 7 messages
torpid holly my messageCreate event is returning this error `Error: Cannot find module '../../Schemas/Beans'`
Trying to mute a user but the command won't go through 35 messages
nova sorrel ```js const { SlashCommandBuilder } = require('@discordjs/builders'); require('dotenv').config(); module.exports = { ...
Edit an ephemeral message without use interaction.editReply() (button) 10 messages
viscid parcel Hello ! It's possible to edit an ephemeral message without use interaction but directly the message ? Actually i use th...
Message.content is empty 7 messages
fleet marsh Hello! Me again. I'm having a new problem related to my bot. I'm trying to make it so that whenever a user deletes or ed...