Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
21 views

How can I use specific cells in a Google sheets range?

I'm creating a Discord bot. Whenever I use the command that this is linked to it works. However it displays all the data in all cells in the set range. How do I get a specific cell out of the range ...
famq's user avatar
  • 1
0 votes
0 answers
21 views

Discord.js Auto Register Slash Commands

Trying to build an index.js file that auto loads, auto reloads, and disables modules with errors in them to prevent the bot from crashing. This portion is working fine. One of the modules that is ...
Elser Pilot Car's user avatar
-1 votes
0 answers
31 views

Trying to match what a user inputs into a command, to a google sheet

So i am trying to get this where when a user inputs a command "steamid" it will go through the google sheet "data" and search for the "steamid". If the steamid is found ...
famq's user avatar
  • 1
0 votes
1 answer
26 views

How to get all user roles from interaction?

I'm using discord.js and need to get all current roles from user, which interacted by slash command. How can I do that? I tried using interaction.guild.members.cache.forEach(r => { currentRoles....
anthony_curse's user avatar
0 votes
0 answers
34 views

When a button is clicked, it creates a channel (ticket bot)

when i run my code: if(!interaction.isButton() || interaction.customId !== 'ticketCreate') return; guild.channels.create({ name: "test", type: ChannelType....
King's user avatar
  • 1
0 votes
0 answers
23 views

I am making a discord bot but it won't start up when I run the 'startup.js' file

Can someone help me start up my bot? its startup code looks something like this const { Client, Events, GatewayIntentBits } = require('discord.js'); const { token } = require('./config.json'); const ...
Alex Blum's user avatar
0 votes
0 answers
13 views

Custom prefix command with discord.js in commands folder

below is the code of my ping.js file in commands folder as suggested on discord.js documentation, but instead of using Slash command builder I am using this below method(no specific reason for not ...
fatimaa's user avatar
  • 11
0 votes
0 answers
26 views

Discord Js V14 Setting permissions on channel not working as expected

when creating a channel with the bot i wanted originally to set the permissions for everyone to not see the channel but for a specific role to see it and for the person that used the command to see ...
wixter-dev-acc's user avatar
0 votes
2 answers
37 views

Error : Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'FLAGS') Discord bot Discord.js V14

i just wanted that the bot if i interact with the button it will create a channel on the "ticket" category if there is no ticket category i verify if there is any category with the id that i ...
wixter-dev-acc's user avatar
0 votes
0 answers
22 views

Discord error "Interaction has already been acknowledged"

I'm trying to make a discord bot which will track your hack club arcade sessions, but I am coming across the issue Error [InteractionAlreadyReplied]: The reply to this interaction has already been ...
DevCmb's user avatar
  • 1
0 votes
1 answer
51 views

How to make a bot kick a person when a channel got deleted?

So I'm trying to make my own custom bot to help moderate my Discord server. I managed to make the channel deletion detection system work, but I can't get the person kicked. This is the script: ...
Nathan Liwang's user avatar
0 votes
1 answer
43 views

I cant make the discord bot detect the person who deleted the channel [duplicate]

So i was coding like a bot that detects if a channel got deleted, if it did i need the person so i can kick them with the bot. This was the code client.on('channelDelete', async (channel) => { /...
Nathan Liwang's user avatar
0 votes
0 answers
32 views

exported variables always return undefined in discord.JS V14

in events/messageCache.ts: import { Events, Message } from 'discord.js'; export interface MessageCacheEntery { authorID: string; deleted: boolean; message: string; timestamp: number; }...
Jaco's user avatar
  • 11
0 votes
0 answers
37 views

VSCODE - No autocomplete for discord.js

I'm making a discord bot for a private server but it would be better if I could have VSCode autocompletion system for this. I was expecting VSCode to make autocompletions for discord.js I tried to use ...
Parronna's user avatar
0 votes
1 answer
42 views

How to make a Discord bot make a channel when a command is made

I'm confused on how to make my Discord bot make a new text channel called 'General 2'. When I do !setup the command works perfectly fine but I don't know how to make it make a new channel. I tried ...
Nathan Liwang's user avatar

15 30 50 per page
1
2 3 4 5
722