djs-questions
9202 threads · Page 173 of 185
glacial valley
if someone send msg and the message has link for invite server i can check the link if from the same server id like if n...
eager raptor
I currently have the following code:
```ts
export abstract class BaseCommand<T extends CommandInteraction> {
abstrac...
tired scroll
error is shown below
stoic silo
I'm looking to debug an issue and, for that, I need to know the exact time at which discord.js sends the request to Disc...
dark shell
Im having trouble creating a way to register and make a command_handler like in discordjs.guide I've had sucess with th...
hexed solar
What is the type for a built command with the slash command builder in typescript?
viscid stump
I am new to coding and I am trying to get custom commands for my bot
feral sandal
Hi! I keep getting this error when I run any command, like /ping: ````TypeError: Cannot read properties of undefined (re...
vale oxide
So lately I have this issue that the interactionCreate event is fired really late sometimes, like 5-10 seconds after the...
rugged ginkgo
Bit of a biggie, I had an error:
`TypeError: Cannot read properties of null (reading 'bitfield')`
In this code:
```js
c...
gaunt silo
Hi, i'm trying to create a music bot, the first thing I did was to try and create a /ping command to test it, when I com...
sonic iris
Hi im hosting discord bot on A server.
And i need to call discord bot function that i wrote on A server, from B server
H...
craggy lodge
Hi, there's some way to change the right-clic app commands related to help distinguish them better?
Thanks
drifting sky
Hi! In the version has the badge "Active Developer" and "Supported SlashCommands"?
(Ping me for Reply)
Kurama.
craggy lodge
Hi, I'm trying to get true if the bot replied before to the same "interacted" message with the icon 😄.
So:
- if other ...
carmine karma
The bot previously posted a message that only contained an embed. However, after editing the message using `ButtonIntera...
crystal island
Hi, I'm trying to get an action row with buttons going for a bot I'm building, using d.js 14.7.1 and TS 4.9.4, and I'm f...
glass apex
Just like the title says, what is the difference between `guildMemberAdd` and `guildMemberAvailable`? I know `guildMembe...
runic ravine
I will be able to create a bot. managed by all groups How can I choose a rank to manage rights, such as viewing the mess...
eternal scarab
.setDescription(`**Η Υπηρεσία του ${client.users.cache.get(interaction.user.id)} μόλις τελείωσε** Η υπηρεσία διήρκεσε: $...
sudden urchin
So background, ive made my welcome-message system multi-guilded with mongodb and i want my users to be able to use thing...
velvet goblet
I'm localizing all my bot commands, and i've been trying to do the same with my help command too, however, I cannot get ...
winter zephyr
Hi!
I just finished my bot today and deployed it to a public GitHub repository. I put all sensitive information in a fi...
maiden flower
So I've shown a modal and `deferReply`'d it inside the filter, after trying to `.editReply` DJS says `Error [Interaction...
upbeat sigil
Hello, I am contacting you because I want to create a discord bot in discord.js but I am encountering a problem for whic...
prisma harness
How is it possible to get a user's role in V14, as I use: interaction.member.roles.has
ocean patio
I'm trying to send massage in a specific channel, is this even the right way to dot it? and it keeps telling me that the...
west iron
My code:https://sourceb.in/PSY3bdhAnP
Error:https://sourceb.in/wE3njrCmH8
fierce tide
I want my bot to react to a message it sent but I'm not sure how to make it react to its own message
tranquil zephyr
```js
TypeError: Cannot read properties of null (reading 'id')
at Object.execute (D:\bot\dist\events\messageDelete.j...
slow cape
ik its probably a dumb question but can someone help/describe to me how I would go about adding cooldowns to slash comma...
west iron
https://sourceb.in/E3xDeUWDti
No errors , just app didnt respond
sleek saddle
I tried using discord.js under deno and the bot won't even start, it deployed commands successfully.
code:
```ts
import...
whole wave
hi everyone, i have an existing web hosting, can i use it to host my discord bot?
craggy lodge
Hi, how can I retrieve a message (by his id) info like msg.content and msg.member/author?
I get the right-mouse -> app ...
wary belfry
Well I want to send a message with a webhook into a Post (Thread's of Forum channels) and I found a bug!
stuck shale
Is it possible to set the `nsfw` property to `true` when setting up the command using the `SlashCommandBuilder()`?
https...
mint oriole
Hey so i would like a function similar to this:
```js
function filterCh(channels:GuildBasedChannel[], [ChannelType.Priv...
sonic quest
Hey! We recently got raided and users used OAuth2 to authenticate themselves. Luckely we had the Join Servers scope, but...
signal stream
Is there a way for me to search for users with a specific role (given in slash command) and then DM the users within tha...
slow pine
Is there a way to detect if/when a user closes an ephemeral response?
If not, what is the easiest way to add a cooldow...
vale fjord
[Info] I am in 1 server(s)!
C:\Users\user\Desktop\VainPvP\node_modules\mongoose\lib\drivers\node-mongodb-native\collecti...
west iron
My code :https://sourceb.in/Gn61psLgRB
Error:https://sourceb.in/prAVx1itGs
violet lintel
Could I ask ( I’ve been trying to figure out ), What are presence intents used for? Example Case?
glass apex
Hello there. So, I'll keep this short. I have a `messageDelete` event handler, and I have a problem. When a user sends a...
stray sage
Trying to do the all mighty 8ball in the bot. Somehow, this thing shows up! I'm pretty sure that the code is right, yet...
glass apex
Hello there. So, as the title suggests, I want to attach already-existing message attachments on a new message. I am mak...
thorn mauve
I'm writing a small bot to help manage the reviewing of various content. This involves a slash command to start a review...
coarse summit
Hi, I'm facing an error related to DJS. I'm trying to include two inputs in my modal and it simply don't work. How can I...
gusty dagger
Hey! I have a question, is it possible to get a channels permissions using the channel id through DJS?