djs-questions

9202 threads · Page 86 of 185

Bot crashing without any errors 61 messages
nimble loom Good afternoon! I apologize if this isn't the correct forum for my question, but my bot seems to be going offline after ...
Setting Voice Channel Status? 5 messages
weary mango So i have thought about adding a function for a Music Bot to show the currently playing song in the voice channel Status...
Does anyone have the starter code from the guide but in typescript? 12 messages
upbeat thorn I wrote my bot in javascript, and have now been trying to convert it to typescript. I don't feel like I have a firm gras...
How to show a modal after a reply? 4 messages
lucid bolt In this command, the bot reply (ephemeral) to the slash command with a button, how to show a modal when this the user in...
Why is my Discord bot not working on Node.js? 8 messages
last nest The bot starts, but does not respond to !ping and !sum. ```js const { Client, GatewayIntentBits } = require('discord.js'...
Fetch user from different shard (without being in the same guild) 7 messages
jagged pivot I'm working on a notification function to send DM user . But I read some information online that using `.broadcastEval(...
1150878580193116250
ReferenceError: IntentsBitField is not defined 12 messages
snow arrow Hello Just getting back into coding bots and I am working on intents, which I don't quite understand. I'm getting the ...
1150878580193116250
Use Discord.js v14 for an OAuth user 2 messages
old fern For a new project of mine, I need to use user's data directly, aka OAuth then user endpoints. I saw that Discord.js mod...
998292157150535700
I don't understand the problem in my program 3 messages
lament edge Hello! I'm a beginner in programming and I've recently started coding my discord bot first, but this problem appears in ...
1150878580193116250
Can't fetch interaction.reply 18 messages
lucid bolt I'm trying to, after the interaction with a user select menu, to edit the reply but i receive the error : `DiscordAPIErr...
Bot on dynamic ip address 3 messages
sick leaf Can my bot run continuously if my ip address changes ?
1150878580193116250
how i can make folder for actions example is: "MessageCreate", guildCreate etc. 7 messages
shell glen # how i can make folder for actions example is: "MessageCreate", guildCreate etc. the same as with slash commands only w...
Overloaded? DiscordAPIError[50027]: Invalid Webhook Token 3 messages
light elk This may have been Discord's API acting up but I'm pretty sure my bot was having issues with processing too many button ...
Collectors just do not work 4 messages
smoky copper i'm making a minecraft crafting table in discord and it (should) work by listening for replies and adding materials to t...
1150878580193116250
command from another file in index.js 4 messages
uncut crescent I am trying to follow the discord js guide, since I plan to create many commands, with what I have, the bot starts, but ...
998292157150535700
Set voice channel topic 2 messages
ancient jolt Is it possible to set the text that goes below the voice channels' names using discord.js?
How to validate if text is emoji? 🤔 45 messages
undone saffron My research has not turned up anything. I want users to be able to type in any emoji that is a valid emoji that could b...
Had to add bot to new server and change over some ID's and having issues with manage roles 9 messages
hollow parrot ```js if (message.channel.type == 1) { const guild = client.guilds.cache.get('Server ID here'); const member = a...
1150878580193116250
Button interaction error 9 messages
peak atlas https://srcb.in/EGl5shcYHe Guys in this my reaction roles system seems to work fine, but not the mod
Play audio from URL 7 messages
dawn wasp Hi, ive created a command to have the bot on a voice channel, it works but i want to play a sound from an url but i dont...
1150878580193116250
Collector#end not firing off unless there's been another button pressed. 6 messages
faint fox node -v output: ``` v21.0.0 ``` npm list output: ```shirabot@1.0.0 /home/ubuntu/Projects/discordjs-shirabot ├── discord...
Application did not respond 13 messages
frail jackal hello, I began coding after some time and alot changed, i took the code from following the tutorials from the discord.js...
How to generate table 4 messages
uncut crescent I have my database from a soccer league, but I want it to display table type when executing a command I have this found...
Discord Bot's Dashboard 4 messages
naive sundial hi i am using discord.js v13 and i want to make a dashboard for every users that can use the dashboard for his server
error cant set permissions as old channel 6 messages
graceful grove ```js server.channels.create(channel.name, { type: channel.type, topic: channel.topic, nsfw: cha...
server.roles is undefined any idea why? 2 messages
graceful grove im trying to create new role with server.roles.create() but its saying that server.roles is undefined
can I use channel.clone for 2 servers 21 messages
graceful grove is it possible to use channel.clone to copy a channel from 1 server to another and can I copy sectors too?
Cannot update embed after component interaction 3 messages
zealous nest Sending a new embed to the channel doesn't work either. What should I do? ```js async execute(interaction) { ... ...
My bot crashes because of memory leaks like after every 20 min's it crashes 5 messages
humble sundial <--- Last few GCs ---> [23636:000001C06D5C3E30] 625016 ms: Mark-Compact 4044.5 (4132.0) -> 4034.5 (4138.3) MB, 864.26...
messageCreate No Message? 7 messages
woven bay dj version 14.13 Why can't I receive messages in my messageCreate event? But interactionCreate can receive /ping, but no...
NO INVITATION LINK 2 messages
uncut crescent I want to create a bot, but when giving it the scope of bot and message read, and admin permissions, it doesn't let me g...
Multi Select in command parameter 21 messages
full linden Hello, i have a general question. Is it possible to enable multi-selection, similar to stringSelectMenus, as a command...
1150878580193116250
Permissions 8 messages
somber vessel Hey, I got an array like `["SendMessages", "ViewChannel"]`, how can I use `BotMember.permissionsIn(channel)` with that a...
1150878580193116250
Editing a message to insert a new component gives "Interaction failed" message? 18 messages
undone saffron Pretty simple thing here. Within my Discord bot, after a user successfully selects an option from a `StringSelectMenu` ...
Edit two messages within the same button handler 3 messages
mint dagger Hello, I have a button handler that will call an external API, send an embed, and edit another message embed too, depend...
Embed question 6 messages
[Unknown Interaction] from any deferReply, and from some editReply/reply 13 messages
dim mirage as an example of usage: ```ts export class MyService { constructor(@Inject('client') client: Client) { this.client...
SyntaxError: Unexpected token 'export' 4 messages
fading crystal ```js const Discord = require("discord.js") const buttonCommand = new Discord.SlashCommandBuilder() .setName("chann...
How can I check the permissions in @discordjs/core 17 messages
jagged sun How can I check the permissions of my bot & the member who sent the message (or interacted with a component) in the hand...
998292157150535700
Embed message text design 7 messages
verbal oriole Hi, I found these 2 examples of bot messages and I can't seem to recreate having the code text as small as in those imag...
Embed with image in code block 4 messages
verbal oriole Hello, I came across this example of embed message that has images in the code block. I am working on something similar...
Minigames Bot project 3 messages
torpid peak would anyone like to help me with my minigames bot?
Re-sending Embed Unmodified Nevertheless Changes Its Appearance Significantly 3 messages
slender hearth If I copy an embed from one message and attach it to a new message (something like this):```ts webhook.send({ embeds:[Di...
1150878580193116250
Reordering Embeds and Attachments in a Message 5 messages
slender hearth As far as I can tell, Discord orders posts as (1) text, (2) all attachments, (3) all embeds. What I'd really like is to...
1150878580193116250
There is no error, but you cannot fix it with a prefix. Can you help anyone? 1 messages
wet fractal https://sourceb.in/zZPTuSUU8d
There is no error, but you cannot fix it with a prefix. Can you help anyone? 1 messages
wet fractal https://sourceb.in/zZPTuSUU8d
What is the proper way to use slash commands 26 messages
fading crystal I have seen many ways u can use slash commands but I want to know the most flexible and easiest way
TypeError: Cannot read properties of undefined (reading 'id') 6 messages
timid citrus ```js async execute(interaction) { const member = interaction.member; if(member.roles.cache.some(ro...
How to update a message after the interaction with a component without using a component collector. 12 messages
lucid bolt I have a log member sistem that sends a message with a webhook when a member joins the server. This message has a button...
timestamps 19 messages
tough edge i need help with timestamps, this example command but how i do something like this with the time?