djs-questions

13317 threads · Page 187 of 267

DiscordAPIError [50001] Missing Access (When adding role) 98 messages
granite flint __What I am trying to achieve?__ Add role with a bot ```js await interaction.member.roles.add(data.sellingRole); ``` _...
change WebSocket port discord.js14.7.1 3 messages
kindred socket ├── @discordjs/[email protected] ├── @discordjs/[email protected] ├── [email protected] i need to change the port of the voice Web...
RPC
so i got a lil bit of code but i cant get the subcommandgroup when i updated to v14 10 messages
dapper saddle so i got a lil bit of code but i cant get the subcommand/group when i updated to v14 ```ts try { commandSubGroup =...
Discord Embed(Fields) Bug 14 messages
fringe sluice Idk why this bug appening, anyone can help me ? Thx !
Many slash commands with the same beginning 3 messages
snow zealot I want to make commands that start with the same name but have different sub-commands. Is this only possible via SlashCo...
ServerStats Member and Bots is 1? 2 messages
Slashcommand for maxLength 30 messages
is there a way for me to check if an interaction has already been acknowledged 3 messages
tall ferry is there a way for me to check if an interaction has already been acknowledged
How can I get the text channel a thread is in? 11 messages
drowsy crest So, when I do `interaction.channel` I get the thread channel. I was wondering if it is possible to somehow find out what...
ReactionEmoji names and id 5 messages
jagged flame Currently making a reaction role giving bot and im noticing that the default emojis, like 👍 or 😄, only have the name p...
How do I make my bot (wich I coded) stay online 11 messages
sand wolf When I first coded and made it run it was online but when I hopped off for a few hours then tried the same thing it didn...
Issue with messageCreate event 7 messages
torpid holly my messageCreate event is returning this error `Error: Cannot find module '../../Schemas/Beans'`
Trying to mute a user but the command won't go through 35 messages
nova sorrel ```js const { SlashCommandBuilder } = require('@discordjs/builders'); require('dotenv').config(); module.exports = { ...
Edit an ephemeral message without use interaction.editReply() (button) 10 messages
viscid parcel Hello ! It's possible to edit an ephemeral message without use interaction but directly the message ? Actually i use th...
Message.content is empty 7 messages
fleet marsh Hello! Me again. I'm having a new problem related to my bot. I'm trying to make it so that whenever a user deletes or ed...
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 9 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 18 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' 11 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.
RPC
hello guys why I got this error 14 messages
ivory hull i got this error
RPC
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...
Command not working 6 messages
applicationGuildCommands error 39 messages
ebon pond ```TypeError: Cannot read properties of undefined (reading 'applicationGuildCommands')``` i'm fairly new to coding and ...
How do i send custom emoji to embeds 8 messages
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....
RPC
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...
Solved 4 messages
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 4 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...
Improvements 6 messages
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...