djs-questions

9202 threads · Page 22 of 185

discord bot with AWS 4 messages
remote basalt Hey folks, currently working on a application using discord.js that does the standard on thread create/update event acti...
Bot's Cache and Fetching 5 messages
steel oyster Hey everyone, I'm looking to understand how the cache works and what would be the most efficient way to ensure that the ...
1150878498534199426
Require Vs Import, trying to "import" another script via the require method. 4 messages
verbal meteor So I was following the discordjs.guide site on setting up the bot and they used require for everything, ```js const fs ...
998292157150535700 1150878580193116250
/Announce command 7 messages
keen vortex Hiya, im just a bit stuck on making a /announce command like this.. (attached image) you do /announce, the pop up comes ...
998292157150535700
Start.bat 3 messages
lofty sierra How do I start my bot through the starter.bat I can't find reliable documentation
1150878580193116250
our bot doesnt start up fully 12 messages
obsidian leaf Github: https://github.com/FadeBlockMC/Discord-Bot the bot starts up so it works on discord but at the server it says "s...
Bot Not Reading DMS 2 messages
full sand This bot will not read it's dms, it doesnt even know its being dm'd. I dm the bot, nothing happens
1150878580193116250
Shards and presence 4 messages
strange wraith Hey, I’m looking to get a rotating presence on a discord bot. The bot auto brings up around 38 shards, and so the presci...
1150878580193116250 998292157150535700
Why am i have something like this 10 messages
real breach I want to add a button with a website and some socials, but instead of just 'leaving Discord,' I have 'potentially dange...
1150878580193116250
Adding permissions 13 messages
ember flame why this code isn't working? ```js permissionOverwrites: [ { id: interaction.guild?....
998292157150535700
Handle interaction after restart 8 messages
marsh venture Hello, I am making a restart command. It sends a message saying it is restarting. When it has restarted, I want it to ed...
1150878890307358882
Any Dev teach me? 6 messages
balmy ermine Any developer who can give me a hand or help me with some Discord stuff? I'm quite interested in learning even if I'm lo...
986538542350086175
Collecting multiple modal submissions 25 messages
ionic surge I have a command that replies to the user with some buttons. These buttons show the user a modal. I am using the awaitMo...
Collecting modal submissions 3 messages
ionic surge I have a command that replies to the user with some buttons. These buttons show the user a modal. The button clicks are ...
How can i draw a palestine flag in discord.js bot ? 6 messages
tired trellis How can i do that like via ASCII ??? please
1150878580193116250
How do i get interaction's integration type (the ApplicationIntegrationType class)? 54 messages
ember steeple I tried to look in the docs and poke around with typescript, found nothing
1150878580193116250
My embed doenst work #embeds 14 messages
real breach my embeds dont send, but messages usually do. I tried to change the code and looked for help with gpt but emebed still d...
1150878580193116250
What is the enum for the portuguese localization 19 messages
frail ledge i want to localiza a command to brazilian portuguese but all of the strings ive tried dont work.
1150878580193116250
Formatting Discord Response Messages 8 messages
sour phoenix Is there a way to modify the responses from Discord API wrapped by DiscordJS ``` GET /guilds/xxx/channels null -> 503 - ...
1150878580193116250
GuildAuditLogEntryCreate & Typescript 4 messages
tawdry sparrow ```ts export const handleAuditDrag = async (entry: GuildAuditLogsEntry, guild: Guild) => { if (entry.action === Audi...
Is there a problem if I use 'force: true' everytime I want to fetch a user? 7 messages
shy python So, I'm doing some testings to one of the commands of my bot, before adding it to the rest. My idea is to always try to ...
1150878580193116250
Slash commands : Default Permission to a role ? 10 messages
jade vector I would like to know if it possible to restrict the **view** of the commands (not the usage) to a specific role ? Or we ...
1150878580193116250
slash commands not showing up 22 messages
wide thicket i have a file `register-commands.js`where i register slash commands but it is not appearing in discord client ```requir...
998292157150535700
Pokémon plugin 1 messages
flint coral Hello, I would like to know please how the Pokémon generator works on the universal 3ds pokemon plugin (in my case on ul...
how do i actually donwload discord.js 4 messages
astral forge i went onto the website, there was no download link, i downloaded node.js and ran the commands i can in windows powershe...
1150878580193116250
badges 15 messages
daring star Hello, I'm doing a command where I pull the badges from the user's profile and I'm trying to pull nitro, but I can't pul...
1150878580193116250
Slash command limit 15 messages
fringe prairie Hi, i think the limit of slash commands was 100 global and 100 guild but for the 100 guild ones is it a limit of 100 per...
Editing an embed 9 messages
ionic surge I remember seeing a video back when I was learning discord.js where someone edited a embed without having the edited tag...
Bot DMs Checking 27 messages
torpid horizon Is there a way where I can check all my Bot's DMs with users?
VSCode inconvinience 65 messages
short sandal My code runs fine with tsc and with ts-node but when i start vscode it starts to generate errors and idk why is that.
1150878580193116250
Object literal may only specify known properties, and 'dynamic' does not exist in type 'ImageURLOpti 7 messages
shadow atlas ``` .setThumbnail(user.displayAvatarURL({ size: 1024, dynamic: true })) ```
Property 'getUser' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType> 5 messages
shadow atlas Property 'getUser' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused"...
how can i make my bot online forever 7 messages
topaz dome im just beginning and trying to learn it i am using VSCode idrk what i am doing and where i can start.
1150878580193116250
Help stuck 2 messages
shy hill i did all the steps but yet i still dont see a trash icon on the discord browser
Discord JS Modal / Interaction 8 messages
stark latch Here is the part of the code that I think doesn't work properly. https://paste.pythondiscord.com/UCXA There is no error ...
1150878580193116250
how do i fix this error which i have no idea of the why its here? 24 messages
1150878580193116250
image in embed 13 messages
tidal python I'm working on something and I'm genuinely confused why this doesn't work. I've looked at previous questions about it bu...
receiving InteractionCollectorError after assumed fix 50 messages
naive valley https://srcb.in/ldSaMiZGcn I assumed by adding the .catch, the bot would stop crashing.
How to get user subscriptions in v14.17 4 messages
brave pewter I am looking for a way to get all the user subscriptions when they use a slashcommand. How can i obtain all the subscrip...
1150878580193116250
Vanity 27 messages
torpid horizon How do fix my code to work, it only checks members who have joined instead of all members:
Mentioning users showing as unknown-user 12 messages
silk panther ```js const result = await User.find( { guildId: guildId } ); let us...
Expected SlashCommandSubcommandBuilder 4 messages
silk panther ```js data: new SlashCommandBuilder() .setName('user').setDefaultMemberPermissions(0) .setDescriptio...
998292157150535700
Hellp i wanted to make a /timeout command but it doesnt work command is deployed 101 messages
misty pasture i checked it with a bot developer he saw the code and theres no eror
presenceUpdate not emitting 22 messages
carmine sail So basically presenceUpdate wont fire if i have user caches disabled which makes it fail to get user and not send, but n...
1150878580193116250
`broadcastEval()` fails to return promise, blocking my thread when awaiting it 3 messages
gaunt blade Just a note: im using discord-hybrid-sharding I've verified that all shards are ready using manager.spawn().then() In t...
1150878498534199426
say im tryna make a bot using distube and i cant get it too play its a weird error idk about 4 messages
dusk yacht > i-hope-this-works@1.0.0 start > node . /home/runner/AKBOTS/node_modules/@distube/spotify/node_modules/undici/lib/web/...
1150878580193116250
Bot cant open Google Spreadsheets? Error 403 4 messages
supple flower Hi, i'm quite new javascript and node and djs, I'm trying to make a slashCommand to see a spreadsheet however its not d...
1150878580193116250
error when deploying commands 6 messages
ornate root i think the error is about subcommands and the only command i have with subcommands is this one: ```js data: new Slash...
1150878580193116250
Confusion about guild memberCount 7 messages
glad canopy Hello, I use guild.memberCount on a regular basis and it worked just fine for a long time now. However, it stopped worki...
1150878498534199426
Database error 1 messages
eager shadow I have a problem with the data, especially MongoDB.
1150878580193116250