djs-questions

9202 threads · Page 49 of 185

problem with launching the bot 1 messages
tawdry rock Hello, anyone knows how to fix it and would please write to me
986538542350086175
add members to thread 12 messages
restive knot ```js case "adduser": { await interaction.reply({ content: `Please provide the ID of the user you want to ad...
Is this how I check if a user has boosted? 13 messages
warm sapphire https://old.discordjs.dev/#/docs/discord.js/main/class/GuildMemberRoleManager?scrollTo=premiumSubscriberRole https://ol...
998292157150535700
Automod command 46 messages
mortal venture This code should be creating a automod rule and selecting a log channel, it creates the rule but doens't select the log ...
Self Hosted Proxy 1 messages
wispy egret Is it easy to create a self hosted proxy for Discord webhooks? Instead of using discordapp.com/api/webhooks you would us...
1150878580193116250
messageReactionAdd not work 10 messages
novel fern Hello, when I restart the bot, the messageReactionAdd event no longer captures new reactions, is this normal?
Invalid protocol value 1 messages
onyx wasp getting this error ``` error: Uncaught (in promise) SyntaxError: Invalid protocol value. at new WebSocket (ext:deno_...
1150878890307358882
How to remove a bot after a given time(days). 6 messages
halcyon pivot so I'm making a little bot called "Prison". All it does is adds a command /jail which takes two arguments, username and ...
cannot get messages from channel 7 messages
eternal bay yeah
Looking for a good way to organize subcommand groups 3 messages
crisp bone I am trying to organize subcommand groups and their subcommands, but I feel like there is a better way of doing this and...
1150878580193116250
help with command 5 messages
solemn nimbus so basically i run the command and its supposed to be an embed for users to click and the choose the reaction to open th...
TypeError: pendingTicketsChannel.createChannel is not a function 16 messages
solemn nimbus This used to work, but discordjs has been updated throughout the years and now it just throws the following terminal err...
ColorConvert error 5 messages
solemn nimbus Ive been getting this in my terminal ``` throw er; // Unhandled 'error' event ^ TypeError [ColorConvert]: U...
How can I catch specific errors, or what is the best way to handle error catching? 6 messages
honest quarry I'm sorry if this is a more common question, but I want to know how I can catch specific discord.js errors. For exampl...
1150878580193116250
Is it possible to mention a user without actually pinging them? 2 messages
cinder furnace I want to do this (image) but not make the user actually get mentioned, so anyone who comes by the message can quickly n...
unknown interactions 2 messages
steel coral i keep gettings this error when i use /itemsdat command
duplicated commands 11 messages
steel coral i did try to fix it but still it here is the code
Error says that it doesn't recognize the interaction 💀 2 messages
warm sapphire ```bash node:events:492 throw er; // Unhandled 'error' event ^ DiscordAPIError[10062]: Unknown interaction ...
Reconstruction 2 messages
solemn nimbus I had a bot designed for me back then that used Discord.js, Noblox.js, mongoose and fs and now most of the things don't ...
1150878580193116250
Unwrapping `Promise<x>` where `void` expected? 55 messages
unborn patio Hi. It's my first time moving to TypeScript from Rust (`serenity+poise`->`discord.js`) and I am trying to handle a `Gui...
1150878498534199426
i need help by a bot command error code 19 messages
north pawn i have a command, and after sending the bot send a embed whit a button after pressing a button push a forms menu, when ...
voiceStateUpdate 1 messages
earnest flume ```js client.on(Events.VoiceStateUpdate, (oldState, newState) => { console.log(oldState); console.log(newState) ...
1150878498534199426 998292157150535700
How do I add temprole to any user in an automated way using djs14?? 82 messages
warm sapphire I know I can use dyno bot or carl bot for it but I want to automate it. Writing my own temprole feature feels like peeli...
1150878580193116250
Discod.js on node 14 3 messages
lavish lion I add discord.js version 13.17.1 in meteor project 2.15. and im getting "/APIRequest.js:34 W20240521-11:06:24.509(3)? (...
Repeated Slash Commands even when set to Global 4 messages
AudioPlayer Stuck in Buffering Status 4 messages
opaque maple I have a bot that can play Audio and has successfully done so for the last while. I have two instances with their own Ap...
member.joinedAt = null 8 messages
winged edge When I use the **GuildMemberRemove **Event the `member.joinedAt` is null. What am I doing wrong? Intents / Partials: ```...
What are some ways to make your code more neat and organized? 5 messages
honest quarry For example, slash commands. Is there a way to neatly organize what I've got going on here? Especially the ```.awaitMess...
1150878580193116250
How do I send timed messages using cron please? 6 messages
wicked cypress HI im not to sure how to work with cron and commands to end a timed message every midnight
Elements Limits / Max Length 13 messages
stoic terrace Hello, I am looking for a page with all the "limits" For example, max length for "name" of /cmd, max length for embed f...
1150878580193116250 998292157150535700
@discord/embedded-app-sdk 3 messages
arctic quiver So I am following the current guide : https://discord.com/developers/docs/activities/building-an-activity#step-4-running...
Mutil-server support 24 messages
dusky oyster Hey so yeah, well, it is pretty basic question but could anyone navigate me how should I structurize folders/files or so...
An invalid token was provided. 27 messages
nimble relic ``` if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID'); ...
Manual sharding 22 messages
nimble valve I'm just asking this for the sake of my curiosity. So I have parts of a discord bot that uses Discord.js. Each part perf...
remove something specific from someones nickname 10 messages
balmy imp i want to make a bot where if someone has a nickname for example kermit - kelp it removes the - kelp and only keeps kerm...
function to verify image links, but the issue with an embed command 10 messages
lean mesa Good evening, I have a small problem. I’ve created a function to verify image links, but the issue with an embed command...
1150878580193116250
Authentification Links Userinstalled-Apps 2 messages
analog spoke Is it possible to log Users who authentificated with this link? ```https://discord.com/oauth2/authorize?client_id=CLIENT...
Send regular text in a message with an embed 10 messages
valid raptor So I'm trying to make my bot send a message that mentions a certain role when it sends an embed. **I want the mention an...
delete message on ready event 5 messages
tidal plinth i tried to exclude a message in event.js but that just doesn't work ```js interaction.channel.messages.fetch(messageid)...
1150878580193116250
channel_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake. 2 messages
viral nest Can someone explain to me why the text channel is not created once an option is selected from the selectmenu? Also, can ...
send buffer as file 3 messages
frail stump Is there a way to convert buffer to buffer resolvable or anything that message.channel.send({files:[]}) supports
1150878580193116250
user interactions 3 messages
tepid night how do I make my command be able to be used in dms, ect. when you authorize the application?
sticky message sometimes isn't sticky 6 messages
void gulch I've got this messageCreate event which is supposed to handle a sticky message in a channel, but sometimes it doesn't wo...
1150878580193116250
Can’t create channels 39 messages
lilac sinew my bot was working perfectly but after a while it won’t create any more channels: ```js if (interaction.customId === 'Bu...
hopefully two simple questions 113 messages
slate flax 1. how do I check my djs version? i just installed it and idk how to check 2. how can i use djs with typescript? i keep ...
Somethings wrong, idk 78 messages
midnight swift Btw token is reset so its fine
1150878580193116250
Bot not responding 48 messages
somber dew So I have created my bot and the terminal is showing no errors. Only problem is that when I try to execute a command e.g...
1150878580193116250
Receiving undefined for Message#guild although it should be Guild or null 21 messages
flint sinew undefined
Typeguard <GuildAuditLogsEntry>.extra to a channel 12 messages
vital flicker I'm listening to AuditLogEntryCreate (channel delete entries) and need to narrow down `.extra` to just a channel. I can'...
1150878498534199426
ERROR :( 3 messages
twin drum /data/data/com.linux/files/home/Bot/index.js:5 const client = new Client({ intents: [Intents.FLAGS.GUILDS] }); ...
1150878580193116250 998292157150535700