djs-questions

13317 threads · Page 126 of 267

How can I send file attachment from string? 42 messages
chilly marsh Hey guys! I've been searching for some tutorial about attaching file to a message but I see that something must have ch...
I made simple discord js bot but i get error 20 messages
@discordjs package
button question 21 messages
wet pier is it possible for me to make a button where when its clicked i can send a message back to the bot that will make it do ...
I get an error 11 messages
vale void I don't know if this is the right channel to ask for help on how to create bots, if I'm in the wrong channel, please tel...
GuildMemberRemove not working 2 messages
fleet mesa ```js client.on(Events.GuildMemberRemove, async (member) => { console.log(`GuildMemberRemove: ${member}`); }); ``` W...
Cannot Edit Interaction 5 messages
rain skiff Trying to make a verification system, but the other file doesn't mention it as a message. (the index.js code is through ...
trying to make a bot listen to dms and then send the message to a channel 4 messages
severe wigeon so i´ve got this problem, im trying to make my bost listen to dms and whenever a message starts with ... i want it to se...
throw err; ^Error: Cannot find module '../commands/fun/avatar.js'Require stack: 22 messages
tulip sequoia Main.js File ```const { Client, Intents, Collection } = require('discord.js'); const Discord = require("discord.js") c...
How do I fix this? It bugs on some users and idk why? 3 messages
Error: Unsupported MIME type: image/webp 15 messages
quaint loom Trying to do image manipulation with peoples avatars but it's throwing this when a static image of someones avatar is be...
my discord bot isnt working 7 messages
@discordjs package
discord js 12 use display name ? 14 messages
vague grail is there a way to use display name on discord js 12 ? once its a things
How do I create a channel with my bot? 3 messages
winged sequoia I'm kind of a rookie at making discord bots, so I'm not really sure how to do this. This is what I found online, but doe...
Issue with setPresence() method 5 messages
drifting inlet ```js const { Client, Events } = require('discord.js'); const { token } = require('./config.json'); const client = new ...
How to track guild kicks 3 messages
opt is not defined 6 messages
rain skiff I already have all the database stuff handled, it's just the tags. The node version is in the error btw `Node.js v18.3...
Avoid ratelimit 2 messages
pallid helm My bot does things that could possibly get it ratelimited, as it sends a ton of messages. Are there any precautions that...
Commands not working 9 messages
tulip sequoia I made this discord bot about maybe 2 years ago I have recently started developing it again to use it as my final A leve...
dashboard problems 3 messages
sterile plank so this actually doesn't have anything to do with discord.js but i cant find anyone who can help i am trying to make my ...
DiscordAPIError[50013]: Missing Permissions 9 messages
languid lake .
Filter not picking up when a user interacts with a static message 6 messages
ebon patrol ```module.exports = { name: 'ruleVerify', async execute(client){ const rulesMessage = client.guild.chan...
messageCreate 35 messages
gloomy oak Hi, anyone know why this isnt working after dm? ```const { Client, Intents } = require('discord.js'); const tokens = req...
How Should I Be Learning DJS? 3 messages
crystal mist ive been wanting to make a discord bot for a while now and now ive finally been able to and i dont know where to start a...
Handling DiscordJS API Errors 10 messages
surreal wolf Hello everyone, I've been trying to handle API response errors to avoid my Bot to die once these occur, errors like char...
Is there a definition of display names for discord.js? 9 messages
raw wharf Is there a definition of display names for discord.js?
How do I get a user's display name and avatar to use in .setAuthor? 32 messages
ashen topaz ^
change clear-warns to remove-warn(id) 7 messages
lost magnet https://sourceb.in/6juwjNd0ng i want to know if theres a way to clear a certain warning instead of all of them
Multi Guild Error Logs 22 messages
lost magnet https://sourceb.in/hmOEpNlIIk i have the schema, interactionCreate event, and set-up command in the sourcebin. it will ...
GitHub Private Webhook Bots 13 messages
pine turtle as you can see by the pictures i want to know how hard it is to make a github webhook bot like there one as the one with...
Ping NaNms 33 messages
astral tusk ```js const { SlashCommandBuilder, Client, GatewayIntentBits, WebsocketOptions } = require('discord.js'); const client =...
detect ping 5 messages
nimble plover Hi, I haven't used discordjs in a long time and am learning the new version. I don't quite understand how to detect a me...
Category insufficient permissions 54 messages
chrome skiff Hi! I've got a code that creates a channel with some channel overwritten permissions. It had worked perfectly until I ad...
Handling components more efficiently 14 messages
teal portal Hey. I am having some issues. Currently, I have been using JDA as I like the way I can create components and stuff and h...
is there a way to make discord wait for a second button input after the first update? 19 messages
ebon patrol Also update the buttons in the action row...
how can I retreive all messages from a channel? 3 messages
harsh wolf ^
Reset menu 2 messages
vocal maple Why doesnt this reset my menu: ```const { PermissionsBitField, EmbedBuilder, CHannelType, ActionRowBuilder, StringSelec...
State management 9 messages
wooden adder I'm building a bot and am wondering the best way to manage state within the app? For example, once a user executes a co...
sending message when shard starts 10 messages
spare urchin Error [ShardingInProcess]: Shards are still being spawned.
Responding to interaction with a video from a URL 5 messages
sudden grail Hi, I have a database of videos that are all stored as links (all on the discord CDN and ending in .mp4). I want to resp...
Click on the button 8 messages
scarlet jetty Hi everybody. Who can tell how to send a message when you click on the button with the "nextpage" identifier? Here is my...
Creating a channel. 5 messages
vocal maple Ihave a problem with making a channel in a category: The error: RangeError [BitFieldInvalid]: Invaled bitfield flag or ...
djs14 question 3 messages
wet pier is it possible to create a command to set up a 'bot-logs' channel, for every server the bot is in? that way if the bot g...
Reply failing on button interaction, getting no errors 21 messages
ebon patrol Just not sure what I did wrong here. Looks fine according to the discord API guide as far as I can tell. When I hit th...
.tag w/changes to the usernames 7 messages
dapper void Apologies in advance if this has been answered somewhere. With the changes discord is / has made to the user names (rem...
@discordjs package
logic building question (flow chart included): 5 messages
ebon patrol First of all, thank you so much for all of the help you guys have given me over the past couple days as I'm building thi...
Icon in embed .addFields msg 5 messages
wind path How I may input this teeny-weeny icon to `value` in `.addField` in my `embed` msg. For example I have something like thi...
Not sure why my embed is failing. 21 messages
ebon patrol Hello! I have an embed that I'm putting together and I'm getting a TypeError that I'm not quite sure I understand. Could...
Slash commands and prefix 12 messages
frosty tide Are prefixes still supported by discordjs? Like can I use them also what benefits would there be with using slash comman...
Registration of slash commands and ephemeral messages 57 messages
scarlet jetty Hello. A question arose. How can I send an "invisible" message to a user using a slash? I am using Java Script version 1...
Can anyone tell me where this is coming from? 11 messages