Bot cant open Google Spreadsheets? Error 403
Hi, i'm quite new javascript and node and djs, I'm trying to make a slashCommand to see a spreadsheet however its not detecting? My code is below but the error message im getting is in the ss
I'v tried:
- testing my slashCommand file(regionals.js) separately from fetchSheetData
- Giving my API key even though the spreadsheet is public...

error when deploying commands
i think the error is about subcommands and the only command i have with subcommands is this one:
```js
data: new SlashCommandBuilder()
.setName('echo')
.setDescription('Sends the message as the Bot')...
Confusion about guild memberCount
Hello, I use guild.memberCount on a regular basis and it worked just fine for a long time now. However, it stopped working for some use cases, for example when fetching a guild manually using
client.guilds.fetch()
. I took a look at the code behind guild.memberCount and discovered that it seems to be using guild.member_count
from the Discord API but I could not find member_count
as valid...Trying to detect emojis added to messages
I am attempting to detect when emojis are added to messages and do different things based on the emoji however currently it isn't doing anything. I found a thing mentioning doing it this way so I tried it, I also looked into event handling and tried putting it into its own file, below, and that didn't work either. Neither of them give errors they simply don't print anything.
inside of index.js:```js
client.on(Events.MessageReactionAdd, (reaction) => {
console.log("event entered");
if (reaction.emoji.identifier == 'gold') {...
Bot crashes: invalid webhook token
Hi my bot crashes after running a command that takes about 15 minutes to finish? The command updates the message according to the 'game state'.
this is the error code
```
error: Uncaught (in promise) DiscordAPIError[50027]: Invalid Webhook Token...
Why does this always return 136 even with clearly more people on call?
I've already tried guild.member.fetch() and guild.channels.fetch(), without success

Issues with awaitMessageComponent
hey everyone.. trying to make a little game and having trouble with buttons.
if my user sends a slash command, i get an
Interaction
object, which i can reply to using .reply()
, attach buttons to that reply, and get the button output using .awaitMessageComponent()
.
this works perfectly....How do i get this colorless embed?
How do i get it, someone said if u dont assign any color to the embed u auto get it but i dont.

Updating commands once the bot is started.
I've looked at various posts but no one seems to help me, when I start my bot with the command โnode .โ my bot goes online correctly however it doesn't update the commands by adding the ones I created, staying on the old ones, even if I go to โManage interactionโ it doesn't change and they are still the same, I don't get any errors in my code.
Can't find json file in correct path.
I'm trying to get values from 2 separate json files but cannot find the files.```js
async function processMembers(members) {
let unityJSON;
let commerceJSON;
...
bot not seeing users
I have the following code which I'm using to attempt to add 2 separate currencies to users, however my bot is only seeing itself. I have a feeling it's because I don't fully understand how the redirect works. The bot is in my server with administrator permissions, and has Server Members Intent, Presence Intent, and Message Intent. Additionally, the oauth url I generated had bot, identify, messages.read, and all guilds permissions.```js
//Attempting to call processMembers for all members in order to add members currency to tables.
client.once('ready', () => {
const guild = client.guilds.cache.get(guildId);
if (guild) {...
Sending messages in a Group DM w/ `UserInstall` & `PrivateChannel` w/out Interaction
Greetings,
I'm struggling with sending messages to a Group DM outside of interactions.
There seems to be no straight forward way (that I've come across) to send a message to a Group DM, so the workaround I found was to use a
CommandInteraction
and then cache the InteractionWebhook
and use that, which worked great... for all of about 15 mins, when I guess Discord culled the Webhook?...User Install?
Does discordjs support user commands and user installs yet? From my testing it seems no but just wondering if im being stupid
Bot seems to constantly reupload files even after one has uploaded?
Re-tag of this as it still occurs with latest DiscordJS