djs-questions

9202 threads · Page 97 of 185

Bot is stuck in request 11 messages
stark lynx ```js async function editMessage(data, channelId, messageId) { if (typeof messageId !== 'string' && typeof messageId...
998292157150535700
How to make sure that a channels.create call followed by a channels.fetch call is consistent? 4 messages
delicate bay Right now I have some code that creates a category and then adds some channels to it. What I've noticed is that there is...
1150878580193116250 998292157150535700
js 11 messages
ancient spruce With this code I can't see the options when I type /
Escape Character causing issue in fetching user info 6 messages
edgy fox I'm trying to fetch member info using the globalName of users but if a globalName contains a escape character it fails t...
'messageCreate' not firing for DMs 14 messages
south loom Hey there, I'm currently having an issue where when trying to receive direct messages, the bot won't fire a messageCreat...
how can i log discord move and disconnect when a user move another user or he disconnected user 10 messages
sullen spruce how can i get the move or disconnected user and the executor i can reach to do this please can someone help with it ?
1150878580193116250
Issue understanding collector filters 29 messages
mental fossil Hi all, I was recently working on learning and integrating collector filters for my code so that if a user who didnt sta...
member is of type 'unknown' 6 messages
pliant swift I'm building a command in typescript, and have the following: ```ts const members = await interaction.guild.members.fetc...
expiring warn 9 messages
fossil trail Hi, im new into discord bots/js and i want to do a warn command, but with expiring date. is it possible? if yes, how?
Webhooks 36 messages
hybrid sonnet I want to ask what are webhooks...? what is their purpose with djs and outside...? what can webhooks do and their limita...
SlashCommandBuilder error 16 messages
grand ledge Im trying to make a command that would dm a specified user a embed. I am aware that there have been questions like this,...
.env 11 messages
ancient spruce Why isn't my token working in the .env file?
.env 1 messages
ancient spruce "Why isn't my token working in the .env file?"
IsJsonEncodable is not a function 3 messages
grand ledge Im pretty new in the discord bot community, so my error might be pretty stupid. So basically I am making a botstats comm...
My Bot won't post a .gif file from it's Assets folder 5 messages
summer hinge It's been a *long* time since I worked on a bot last and I've been revisiting my old bot that runs my server. I've updat...
986538542350086175
[SOLVED] Give Role on Button Interaction 44 messages
young breach There we go
Audit log event 12 get guild 3 messages
balmy iris I have the d.js release "main", i do not know which version it is, but i think it is v14, https://replit.com/@OttiOtta/H...
Get All Users with a Role then If it doesnt match a certain custom status ex. .gg/, it removes it 5 messages
young ore title ^
channel.isTextBased is not a function? 8 messages
tidal wadi hey! i'm trying to make a channel every time the user clicks a button. the code used to work but isn't anymore and i'm n...
add role 16 messages
dusky tusk hi so ive been trying a lot to make this work but it just wont ```js if (command === "addrole") { if (!message.memb...
I got a question 5 messages
vital heath https://sourceb.in/7bO9vBAXIK
cannot recieve direct messages 29 messages
balmy shell i have partials (which apparently has been the solution for literally everyone else on this planet) code: ```js const c...
Trying to get the ban command to work 2 messages
uneven wasp I have been having issues with my ban command for some time I need it so I can ban their ID and also mention them within...
How to detect whether my bot has permission to JOIN and SPEAK in some voice channels 9 messages
small tide just it
detect kick 2 messages
digital nova Is there an easy way I can detect when a guild member is kicked?
why I got interaction failed on start and cancel button 7 messages
vital heath <https://sourceb.in/9ssw26myBW>
Automod System 11 messages
torpid holly so yesterday I was making an automod system and I realized this: If a user reaches 3 auto warnings, gets auto timeouted...
discord.js message in a function 13 messages
empty lichen how can i make a function that i can xall at any time and it will alow me to send a certain message
Help fr 14 messages
tulip owl Error fetching leaderboard: CombinedError (3) Received one or more errors 1 ExpectedValidationError > s.literal(V) ...
Attachments 5 messages
balmy shell do attachments not work? whenever i try one, it returns the error ```js node:events:491 throw er; // Unhandled 'e...
gen bots are against tos? 7 messages
jaunty mist Just question i want know answer =()
application commands 28 messages
outer forum i have a question, how do i register new application commands when i create. coz if i want to register them i have to re...
How make the bot online? 9 messages
crystal lichen I need start code, in discord.js start code in typescript I need in js
Deferrals 19 messages
mental fossil I've had a few issues as I have started to try and learn deferring and avoiding timeout errors. Many scripts that worked...
998292157150535700
Ban command. 26 messages
uneven wasp How do I make my ban command work with Banning their Discord ID and when you mention them within the slash command. http...
Automod 4 messages
torpid holly I have an issue with my automod system, if any Proficient, mod or higher can help me, I can DM them the pastebin link wi...
How to create a new channel for a guild? 77 messages
delicate bay I have a bot that will create a text channel to write into when invited. My question is how can I do this with *discord....
What are people using for sharding? 9 messages
lunar pasture I recently moved over to the discord-hybrid-sharding library but I have mixed feelings on relying on this one library de...
998292157150535700
Change message author as bot 7 messages
thick canopy I saw a channel that converts the user messages like a bot (in counting). I tried to recreate this using Discord JS but ...
How can I make this menu appear after I click on the link? 3 messages
nimble wolf How can I make this menu appear after I click on the link?
how can I do this? and dps he answer 5 messages
nimble wolf how can I do this? and dps he answer
hosting on raspberry pi 5 messages
balmy shell running node index.js on my vscode works fine, no errors running it on my raspberry pi returns an error ``` node_module...
998292157150535700
Why doesn't my bot always properly set/update a GuildMember's roles? 50 messages
round citrus Since I'm developing an RPG bot and a lot of logic also requires guild members to have certain roles. I've had situatio...
ticket 12 messages
gray magnet Hi guys! Everything seems to work about the code but when I try the general support menu, it gives me the error that the...
Mobile Status 3 messages
hallow marlin I have tried to set the mobile status by doing the `Discord iOS` in ws/index.js but It doesn't seem to be working, is th...
Auto menu 5 messages
austere socket How can I make a menu that shows all channels or roles with discord.js ?
Context menu commands not adding to the Context menu or not updating 11 messages
worthy veldt Hi, i'm trying to add / remove context menu commands to my bots, i create them similarly to the ones that works fine, bu...
Message content intent gets denied multiple times. 2 messages
whole fulcrum I have a bot that's gonna hit 100 guilds soon and we have so much things that rely on that intent and we use slash comma...
Can someone fix this? Buttons are not working for this embed 16 messages
vital heath ```js client.on('interactionCreate', async (interaction) => { if (!interaction.isChatInputCommand()) return; if...
What could be the error it is not collecting my reaction is not even printing the user.id 5 messages