djs-questions

9202 threads · Page 93 of 185

How to search through auditlog targets 1 messages
rigid knot how to search through auditlogs targets, I'm using this code: ```js const fetchedLogs = await <guild>.fetchAuditLogs({ ...
How to add localization to .addChoices functions? 3 messages
tender flame Hi all! The question is how can I localize the choices, I just don’t understand how to implement it😅
Connection Timeout Error 2 messages
unique jay hey guys im really new to all this, im trying to set up a bot and i cant figure out why im getting this connection timeo...
DiscordAPError[10062]: Unknown Interaction 61 messages
shell fog ```ts const event: BotEvent = { name: Events.InteractionCreate, once: false, async execute(interaction: Int...
catch message.delete() 2 messages
rigid knot how to catch() the `message.delete()` method, I'm using: ```js message.delete().catch(err => { console.log(err) }) ``` b...
Bot send multiple message unpredictably 7 messages
vocal axle I'm using discord.js v14.11.0, node v16.20.0, typescript v5.0.4 and forever v3.0.4. I saw there is a question post about...
1150878580193116250 998292157150535700
ACTIVITY_JOIN Event 3 messages
hard marsh I want to make "ask to join" things but idk how can i get ACTIVITY_JOIN event
1003448629866020986
Buttons! 23 messages
magic gulch Having an error with some buttons. Developing in replit, Invalid form body error. ```const { Client, GatewayIntentBits, ...
1150878580193116250
How to end this argument string? (and how to make the code.. work?) 11 messages
magic gulch Developing in replit, giving me an error with syntax errors, argument string errors and the bunch. Thanks for the help. ...
1150878580193116250
Setting a limit on number of subscribers to a Scheduled Event 2 messages
cursive lark Is there any way to set a maximum capacity of number of people to a scheduled event? There doesn't seem to be an option ...
BOT SEND MULTIPLE MESSAGE 9 messages
empty bay Hey I have a problem my bot spam message in channel but I want just send one message and update it and I don’t know how ...
1150878580193116250
code to servermute all users in a voice channel 6 messages
tame edge Have been trying to figure out how to implement a command that when the trigger command is used then it would server mut...
1150878580193116250
Help with bot 25 messages
gritty dune I'm trying to make a bot that when a user uses a specific command like "!dm", the bot dm them saying something positive....
1150878580193116250
Unknown Channel 16 messages
rigid knot I'm using this code below to edit every new channel or an edited channel to deny `SendMessages` for Mute-Role, and deny ...
Call client in another file 19 messages
twin terrace Hello ! I have my client instance declared in my index.ts as usual and would like to be able to call it in another file ...
1150878580193116250
Help 8 messages
marsh sable Code - https://pastebin.com/s8s53Cqj Error - ``` C:\Users\User\Desktop\Музыкальный Бот\src\structures\MusicClient.js:1...
Discord.js Inbedded buttons not wokring 9 messages
honest kindle "TypeError: Cannot read properties of undefined (reading 'PRIMARY') at Object.execute (/Users/lex/TheHierarchysBot/B...
functions across modules returning undefined 2 messages
balmy shell i have a function in another script (being imported): ```js (async () => { const channel = client.channels.cache.g...
1150878580193116250
Error 1 messages
potent anvil ```node Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-10-01T05:06:15.846Z ...
How to register slash commands in Typescript 6 messages
burnt trench I do apologize for asking a simple and basic question here, but I've already searched for it here and google but couldn'...
1150878580193116250 998292157150535700
Slash command only for bot owner 4 messages
hardy seal How to set permissions that some command can only visible to bot owner across all servers bot is in?
Command Handler Not Working?? 26 messages
noble brook My discord bot does not respond to slash commands, and I do not know the reason why?
DISCORD STATUT 19 messages
empty bay Hey I want set a statut to my bot discord but he don’t set this is my code : ```const { Client, GatewayIntentBits } = r...
1150878580193116250
Delete the message to clicked button 2 messages
marsh sable How to delete the message under which the buttons are when this button is clicked?
Direct Messages Not Receiving 5 messages
honest kindle My discord bot does not see or recieve direct messages, I have partials on and all the intents logging and error checkin...
Embed color not working 2 messages
zinc willow As soon as i add the color code, it stops working.
Used disallowed Intents 2 messages
zinc willow So i got this code from a friend who supposedly used all intents (pic provided) and warned me to use the ones i need, bu...
bunx create-discord-bot defaulting to npm 13 messages
reef nest bun version: 1.0.3 node version: 18.18.0 when running bunx create-discord-bot I get the message: Detected an unsupporte...
1150878498534199426
error embed 1 messages
lean willow <#986520997006032896>
Bot deleted off dashboard, what happens to code? 17 messages
wary thistle Hi, I had to delete my bot off of the discord dev dashboard, and created a new one and assigned the token and all the st...
1150878580193116250
Problems with a command 16 messages
sand hearth I'm creating a poll system, this command will have subcommands and stuff. The problem it's that when I test the comman...
1150878580193116250
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...
1150878580193116250 998292157150535700
@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 ...
998292157150535700
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...
998292157150535700
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...
1150878580193116250
hope do i do the npm thing it's nto working 33 messages
edgy condor i need help
1150878580193116250
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...
1003448629866020986 998292157150535700
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 ...
1150878580193116250