djs-questions

9202 threads · Page 139 of 185

What's the difference between a Collection and a Map? 4 messages
thin elk title
Button is not bringing up the model im not sure why 127 messages
mild meadow ```client.on(Events.InteractionCreate, async interaction => { if (!interaction.isButton()) return; if (interact...
Attachment in embed 6 messages
icy lotus Hey, how can I turn `interaction.options.getAttachment("image");` into an attachment to use in an embed? I've tried to ...
Post with user discord account not bot 24 messages
coral plume hello friends, I'm building a forum using the discord api, is it possible for the user to log in using his discord accou...
TypeScript Documentation 8 messages
halcyon python Is there any official documentation or references within the documentation to using Discord.js with TypeScript? I took a...
Search messages from user 6 messages
late shale Is there a function in the discordjs api to search a server's messages for a specific phrase from a specific user, like ...
Expanding the message cache 4 messages
digital nova Quick question: Will this create a cache of 5000 message per channel? ```cpp makeCache: Discord.Options.cacheWithLim...
get crach error 2 messages
mortal pendant hi, its possible/how to get all console info in a txt (so i can see why the bot crach)
How can i create my own custom property in sharding Options ? 2 messages
thorn matrix for ex:- `restarts: 5` // Max number of restarts Also i am using `discord-hybrid-sharding` so i can create `guildPerSha...
errors guildmessages is not defined 97 messages
zenith crown const { Client, IntentsBitField } = require("discord.js"); const client = new Client({ intents: [ IntentsBitField...
My internet wasn't working properly and I got weird ssl errors about facebook domains? 4 messages
sudden bronze Is discord sharing ssl certificate with facebook or something? I don't have problem with my code. I just found this stra...
discord-rpc large-image 3 messages
velvet knoll I'm trying to make rpc display an album cover: ```js if (status.state === "stopped") { return { state: "Stop...
1003448629866020986
How do i fix this error 6 messages
smoky quail ``` DiscordAPIError[20012]: You are not authorized to perform this action on this application ``` all i did was make a ...
[SOLVED] Create VC with certain user-limit. 7 messages
sick meteor how would i create a voice channel in the server with a specific user limit?```js const tempVc = await guild.channels.cr...
I can't detect the message reactions 64 messages
obtuse schooner What I want to do is check if the bot has reacted to the message, but it only works if I react to the message too, which...
Update or rewrite? 5 messages
white tree Hi, I originally wrote my bot with discord v12 and have made some slight changes to it over the years but not much. I wa...
How can I lower my bot's ws ping? 9 messages
distant basin .
Missing permission 43 messages
regal comet Hey maybe a stupid question but my bot has Admin permission role but i get this error when i try to add a role to an use...
cant get the user option 13 messages
upbeat shell i have a subcommand with a `user `option and a `string `option. Im trying to use autocomplete in the string option. And ...
Ticket Error 28 messages
winged sundial I believe i need to place ` if (interaction.customId == 'ticket')` some where in my code but im not sure where/if it is ...
401 when trying to delete my own message after 1 hour 7 messages
pine pewter When trying to delete a reply after 1 hour I get a 401 error. code: ```ts const reply = await interaction.reply({conten...
Is there a way to use a modal in a context menu? 7 messages
obtuse schooner I'm trying to use the modal to provide a value when the context menu is triggered, but I can't pass the message to the m...
discord embed prompts iPhone 2 messages
copper thorn Is it possible (or planned in the future) for a discord embed to prompt an iPhone feature, mainly the call feature? Ie c...
986538542350086175
weather command doesnt take any option as input 15 messages
near drum So I created a weather.js file for the weather slash command that should take the city as option and display the humidit...
Message not sending 6 messages
pallid helm only logs fetched successfully with no message being sent, any ideas? https://pastebin.com/wrLL216e
What even is this and why am I getting it? 22 messages
tawdry crystal if (options.rest?.userAgentAppendix) { ^ SyntaxError: Unexpected token '.' at wrapSafe (intern...
Finding out who removed reactions 4 messages
tawny jetty Is there any way to figure out who removed reactions on a message, starting to feel like API doesn't handle this. I don'...
Handling Permissions (want Feedback) 7 messages
little temple Hi, I'm trying to do some extra error handling if for some reason the bot permissions were changed and events/commands f...
Auto Embed 31 messages
charred igloo I have the issue where if user sends 2 links, they will properly embed as above, but when bot/webhook sends same content...
Getting fist N elements from a collection 7 messages
quick stirrup Hi, I have a `Collection<string, number>` that I'd like to trim to top 5 elements in command autocompleting. My current ...
Fetching option questions. 6 messages
inner sorrel I work on a discord bot for a large community through several discord server/guild. And i need to fetch an certain amoun...
The bot does not respond to the message 18 messages
jovial flower I wanted to start exploring discord.js but after writing the first code I encountered a problem with the bot not respond...
redis cache 2 messages
tawdry laurel Is there any way to cache all things like members and guilds in redis?
How to fix creating a new event listener every time someone executed the command `sendimage.js` 5 messages
visual dune Hello everyone! Code didn't fit in this post but you can see the code and problem in full detail on stackoverflow: https...
Trouble with buttons as per discordjs.guide example 16 messages
royal willow I'm following the guide on discordjs.guide regarding adding buttons and having those buttons then perform the action for...
Forum channel permissions 2 messages
past obsidian I want to edit this permissions for a role applied inside a Forum channel, I can't seem to find which roles are these, I...
Event Listener paramters 7 messages
eternal bough how do I figure out what params to add to my execute: function in my event listeners?
Update button component without updating the whole message? 24 messages
pine pewter I'm playing around with message components and want to use some buttons as booleans for some configurations (red = disab...
Ratelimit question. 5 messages
halcyon meteor Does discord js check the rate limit? For example, if I want to do this code: ```js while(true) { interaction.edit...
discord voice message ? 4 messages
rigid stream Does discord voice message will be available to discord bot ? Or you didn't have any news on it ?
Slash command failing 4 messages
edgy crane 'const { Client, GatewayIntentBits, Partials } = require('discord.js'); const client = new Client({ intents: [GatewayInt...
Welcome message isn't working. 16 messages
marble monolith I am trying to get my bot to post a welcome message in a channel as soon as a user joins the server. However I am not su...
Convert from CJS to ESJS 39 messages
cinder wraith Hi I'm following the guide in discordjs.guide and at this page https://discordjs.guide/creating-your-bot/slash-commands...
Sharding problem!!! 34 messages
ionic oyster When my bot is running on my local machine it works without any error but as soon as I try to deploy it on a vps eg. Dig...
Is there a way to calculate the total character count of all fields of a message before it is sent 4 messages
crystal crag I want to be able to calculate the character count of a message (Most helpful if it was caluculatable for individual emb...
Question regarding handling Partials (messageDeleteBulk) 6 messages
little temple Hello, I have this working so I don't need help in that sense but I was wondering if there was a better way to handle go...
channel.permissionsFor on command returning null value 5 messages
versed karma I have a command that does a check of permissions the bot has before it starts processing and I'm having trouble with it...
My bot keeps reconnecting to discord 6 messages
gloomy whale Can I please get some help with this, I've been having this problem with my bot for some time now, almost 3 messages fro...
Max Memory Restarting on Traditionally Sharded Bot 19 messages
drowsy crest What do people here use for facilitating automatic max memory restarts with a traditionally sharded bot?
.setDisabled(true) is not a function 9 messages
vagrant ridge Hi, I'm bumping into an error every time I try to change the buttons (components) in my message to be disabled. `consol...