djs-questions

9202 threads · Page 181 of 185

Command is not replying to reactiuon 21 messages
weary wigeon Hi so Im sure I've missed something but from going through the discord.js guide I made this which is supposed to:= 1 - ...
Adding ActionRow Buttons to Messages or Embeds 18 messages
proven lintel Im trying to create a simple poll system, in which the user can react to a message to vote. However, the current impleme...
GuildMemeber.roles.add throws Missing Permissions 17 messages
fleet marsh Hello everyone! I'm currently making a personal bot for my own server as a way to learn more about DiscordJS and Discord...
How do I edit a message using message.edit()? 30 messages
nocturne rose Currently, here's my code: ``` // Require the necessary discord.js classes const { Client, Events, GatewayIntentBits } =...
give roles off arguments in an array 8 messages
torpid hazel hello! i am currently looking to give roles off a spreadsheet. i have used `csvtojson` to convert the spreadsheet to a j...
Using nextjs to post message with Webhook (timers promises error) 4 messages
plucky frost Hi, is it not possible to use a nextjs web app and discord.js to use a webhook to post a message to a channel? I am gett...
Types of options 5 messages
snow zealot Please tell me what each type is responsible for, give documentation on the types of options `3.options[0].options[0][UN...
Strategy for querying Guilds (Sharding) 3 messages
steep belfry I have a sharded bot and I am implementing an API route to get guild data for multiple guilds. Is it sufficient enough t...
Typescript errors with Components 2 messages
rapid dawn Typescript usually gives me errors when I try to create components, telling me that certain properties are missing. Acco...
I want to hide slash commands for some guilds. Is this Possible? 24 messages
spiral linden - user checks available command using `/`, there is one command `help` - user buys premium - user checks available comm...
Resume gateway session after full restart 4 messages
glad canopy Hey, I want to update my bot's code without missing any events and reaching my session start limit. Is there any way to ...
How do I find the id of a role that is found by its name? 7 messages
chilly drift Title, i am trying to log the id of a role that goes by a certain name.
Why try, catch doesn't catch d.js errors? 3 messages
lofty topaz Test code i am running: ```js try { message.channel.createInvite({ maxAge: 10 * 60 * 1000, //max...
Editing another button after a button is pressed 20 messages
elder dragon Hey I'm having trouble editing another button after a button is pressed ```js client.on("ready", () => { const chan...
Need help with permissions 6 messages
sick locust Can anyone help me adding permissions to slash commands? I know about the setDefaultMemberPermissions option but i want ...
command permissions 19 messages
slender haven how do i add permissions to slash commands ? everyone is using every command in my server
[ New Discord Feature ] Linked Roles 9 messages
woven seal how to know if someone has already gotten their roles after linking with their connections to my server? with this new f...
Slash Commands Unable to Parse Options 17 messages
zenith pike Was testing out some commands I wrote the other day and it kept having this issue. Confused I started up my test bot and...
[Typescript] Property 'commands' does not exist on type 'Clientboolean' 10 messages
ember lantern Hello, I am trying to make a Discord Interaction command handler following the Discord.js Guide. When I am using `clien...
how i can fix this error 9 messages
ivory hull My Error is: Error: OAuth2 Error: invalid_request: Missing "redirect_uri" in request.
1003448629866020986
hello guys why I got this error 14 messages
ivory hull i got this error
1003448629866020986
Unable to use anything in DJS 17 messages
last relic Hello everytime i install discord.js via the console no imports works like NOTHING and it makes me unable to code my bot...
How show the DB Values in SlashCommand 19 messages
radiant lagoon How can I show the values ​​that I show with arrows in the picture in SlashCommandBuilder? server-ismi, server-ip etc. a...
applicationGuildCommands error 39 messages
ebon pond ```TypeError: Cannot read properties of undefined (reading 'applicationGuildCommands')``` i'm fairly new to coding and ...
Unable to login through through RPC API 21 messages
knotty torrent Hey everyone, I'm trying to log in through the RPC API using `discord-rpc` Node module, but I am getting an OAuth error....
1003448629866020986
bot offline 9 messages
bronze lance Hello sorry I have no idea what I've done wrong here, I followed a youtube video or 2 but my bot still won't go online f...
interaction is expired after 15 mins 13 messages
final swallow I would like to fetch data from discord channel and reply with excel file. When fetching and repling takes long, interac...
How I can catch those random Missing Access errors 3 messages
hearty ferry My question is in the title but I really want to know if there's a way to track down these errors instead of adding .cat...
No duplicate tickets in discord.js 21 messages
dawn zephyr I want to make my bot to not create another ticket if there is an open ticket by the user requesting this action. ```js...
How to add additional information to Buttons other than customId 5 messages
inner kraken I have a button handler that sends button interactions to different files depending on the customId. I was wondering if ...
TypeError Cannot read properties of undefined (reading 'create') 9 messages
ancient musk here is my code ``` const { SlashCommandBuilder } = require(`@discordjs/builders`); const {PermissionsBitField, EmbedBui...
401 - Unauthorized error when trying to set permissions on application commands 12 messages
low briar I am trying to automatically set permissions on application commands based on the role or user ID when a command is priv...
SlashCommandBuilder doesn't have a generic method for adding options 20 messages
grim otter Is there a reason SlashCommandBuilder doesn't have a method for adding options with the type as a parameter? At the mome...
InteractionNotReplied when I replied? 8 messages
scenic steppe I am getting `InteractionNotReplied` when I have already replied to the interaction.
Weird error when even trying to run a discord.js file 12 messages
unreal gust using repl.it
Get channel by id returns undefined 18 messages
hard granite Hi, so i got a question, maybe i'm crazy but idk, i try to get a text channel from my server by id using this ```JAVASCR...
Error with embed command. (sorry i am a newbie) 58 messages
winged walrus Hey! (Sorry in advance because I am a complete newbie. Please don't make fun of me.) I am getting this error with djs ve...
Using attachment files in embed 7 messages
sinful heart Hello ! I've encountered some weird behaviour with embed. On my script startup my code will work with some png files but...
Cant Receive Direct Message 3 messages
proven lintel Hey, started learning discord.js since like 2 days. Trying to figure out how to get my Bot to respond to DM's but it jus...
Bot Error 16 messages
verbal cosmos How do I fix the following error?
can't execute command no erros in console 9 messages
viscid raft Error Code https://sourceb.in/T4AWUQJwwH Nothing on the console
bot confuses messages between servers 18 messages
fallow coyote it sends a picture with a description and mention the user, but confuses the servers to which messages are delivered if ...
Interaction has already been acknowledged. 26 messages
faint island const { Client, Events, GatewayIntentBits, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); modul...
.getBoolean 5 messages
thorn hazel Im trying to run something else based on Boolean Option but for some reason there is no boolean geting parsed ```const ...
Best way to find out what user created a channel? 3 messages
inner cloud discord.js 14.2.0 node 8.11.0 I'm trying to find out who created a channel, but the `channelCreate` event doesn't appea...
I made this codebase to fetch top 10 users from server, active one by message, why is it not working 8 messages
chrome yarrow In fact the purpose of my bot is mainly to retrieve a ranking of users, within a period of 30 days, and assigned a role ...
Using slashCommand to modify data in an Embed 2 messages
normal ember Hello there, I got stuck with my new project, how can I connect these two commands together? `warehouse.js` is basicall...
Session Manager 3 messages
paper basalt Hello, is there a way to track session data through a plugin or directly built-in with discord.js itself? With session ...
V14 Get Channel from Slash Commands 14 messages
tired stag Hi guys, I wanted to create a giveaway module for my bot and to create a giveaway I want to use slash commands. The prob...
Catch Error for embeds V13? 53 messages
scenic scaffold Where would I add a catch error for V13 embeds? There are times when code such as this correctly executes and will dis...