RCON Response
I have a working chunk of code for RCON, but I can only get it to console log the command and the information. I have been trying to get it to output the information from the command to the Discord channel. Any help with this would be greatly appreciated. 🙂
ReferenceError: interaction is not defined
DiscordAPIError: Invalid Form Body error when i load my slash commands into my discord bot
CombinedPropertyError? when trying to use a function that uses JSDOM to return a string for embed
Hello!
I have a problem so my code is giving me multiple
CombinedPropertyError idk whats that but I used some async functions to get the descriptions to give to my embed
```js...
Autocomplete Error!
CommandHandler```module.exports = class Command {
constructor(client, meta = {}) {
this.client = client;
this.data = meta.data;
this.contextDescription = meta.contextDescription || null;...
how to get user’s displayName
I am trying to display the server members displayName not usernmae but it returns with a username even tho i use member.displayName
a general question about autocomplete
how would I show an array in autocomplete? I want foo and bar to be the 2 options that will show upon respond, the question is how do I do it?
...
const arr = ['foo', 'bar'];
const arr = ['foo', 'bar'];
I have a simple doubt
it is possible to edit only the button that i reacted in a message i wanted to deactivate it only when i reacted it
Fetch an array of message IDs at once
Is there some sort of way to fetch multiple messages by
id in a single request?
Kind of like message.channel.messages.fetch([snowflake_one, snowflake_two])
I tried interaction.channel.messages.fetch([1124766378705027212,1124766519826587670]).then(_ => console.log(_.size))
And it reports 50, which is a lot more than two lol
...Unknown Message
```js
const message = await interaction.fetchReply();
const collector = message.createMessageComponentCollector({ componentType: ComponentType.Button, time: 3_600_000 });
collector.on('collect', async i => {...
Embedded errors
Hi! I'm having a problem with my robot!
I don't know why, but the robot crashes when a member fails to join the trigger
(I'm a newbie and I've tried everything, but the problem is still there)
This provides me with the Code...
Unexpected string in JSON
I'm trying to create discord bot that can show an output by slash command but the code couldn't run. App used: Replit. Here's the code:
index.js```javascript
const fs = require("node:fs");
const path = require("node:path");...
How to make a bot execute a file
I am trying to make my Discord Bot run a file from a slash command. How would I go about doing this?
ChannelNotCached
Error [ChannelNotCached]: Could not find the channel where this message came from in the cache!
how to fix this error its showing up in my messageCreate event...
Activity Filtering
If I wanted to filters those discord activities, like the games you can play, would I need to filter via activity type or something else? Because things such as applications that show up on users statuses e.g. Vs code, roblox, and other games are the same activity type as the activities you can play on discord.
Current Code:
```js
botClient.on('presenceUpdate', (oldPresence, newPresence) => {...
How to Respond to the interaction without displaying anything
I have created a function to edit the message according to the StringSelectMenu selection. However, the message "This interaction failed" is displayed even if the message is successfully edited.
Is there any way to respond to the interaction without displaying anything?...
Creating an Update Handler
Would it be plausable to create a handler thats job would be to catch any updates such as updating/deleting messages or channels to enable a more consistent logging system for a bot, if so any pointers to files that may help me would be very much appreciated!
Reliably Fetching Roles from Member in Guild
How can I reliably fetch a member from a guild (without guild members intent) and ensure that the role information is always accurate when I fetch? I've been running into a problem where when I fetch it, it sometimes gives inaccurate role information. I'm using broadcastEval to perform this action as I'm looking at the role from a specific guild.
Preventing some guilds from being cached
I want to customize my cache to prevent my Bot from caching the GuildMembers of any guild which isn't set up in my database, because without being setup, the bot really can't do anything for the server. and I would like to save memory
I have a list of ids I don't want cached when my bot starts up, and I was thinking of using sweepers to achieve this, is this the correct route to take?
Additionally, can I alter the sweeper while the bot is running to add servers to the cache?...

