<Member>.voice returns null
Heyhey, i've ran into an issue where whenever a member is connected to a channel when the bot starts or restarts, and then leaves, the old voicestate of that member will always be null. Any ideas on how to possbily prevent this?
I cannot use my any command....
When I try use any command. it doesnt send message in channel but it send message from dm
my code: (it can be complicated but every if else typical same)
https://srcb.in/IqfX6bA25D...

Stuck trying to create a map to track votes on messages
I'm trying to allow user to upvote/downvote messages using reactions, as well remove their previous vote. I'm using a map and a map of maps to do this. The problem is that when a user reacts to a message, the map "userMessageVotes" updates correctly, but the map of maps does not.
userMessageVotes - A map of a users votes per message
messageVotes - A map of maps that has all votes from all users in a message.
...
Sending a user a DM
im trying to send a embed to a user's DM when they get a certain role. It use to work but now i get an error for line 11 saying "Cannot read properties of undefined (reading 'members')"
Then i use member.user.send(WelcomeEmbed) to send the embed
Versions:...
userse
Hello, what is the correct event I need to use in order to monitor a permission that changed on specific channel, for example if a "everyone" role ViewChannel/Connect permission has been changed to 'x'
Check if token valid
How can I check if a token is valid before trying to login? or maybe using the login function if that return a good error idk
code: 'ERR_SOCKET_CONNECTION_TIMEOUT'
```
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
...
Get member roles without member cache
so i have guild member cache disabled but i would like to get roles id array which is gotten from api once on a while if i try to use roles.cache.keys, it gives just everyone role, or other way if i already have to use cache, can i somehow like add filter before saving? so that it saves only specific properties?
and by first i mean there can be roles filled up after runtime which isnt good unlike on start...
deferReply not working on specific server
Hello.
We are running a small hosting service for Discord bots but one of our servers can't execute
editReply from DIscord.js. Discord.py works just fine.
The bots just stay on "is thinking..." until that eventually times out. After around 35 minutes the console shows an API error "Invalid Webhook Token".
...msg not sent to thread
```js
client.on(Events.ThreadCreate, async (thread, newlyCreated) => {
const chl = "1113514934643470456";
if(thread.parentId === chl) {
if (thread.appliedTags.includes('1113573160965656576')) {...
sharding across multiple cores
IIRC, Discord.js's native ShardingManager only distributes shards across a single core (as far as v14.11.0 goes). I've looked into Kurasuta, a sharding manager that allows for shard distribution across multiple cores. Can anyone recommend Kurasuta, or a different manager?
'sharding is required' error, with sharding
recently upgraded to the latest version of discord.js. using the default ShardingManager that djs offers, but when I start up my bot, i still spontaneously get errors of "Error: Sharding is required" from the websocket.js file
(context: 45 shards, ~104,500 servers, djs v14.11.0, node.js v16.17.0)...
Failed to compileModule not found: Can't resolve 'zlib-sync'
getting this error when just doing which is weird cause i thought zlib is an optional package
import { Client, GatewayIntentBits } from 'discord.js'
import { Client, GatewayIntentBits } from 'discord.js'
<Collection>#get not documented?
Why is the
<Collection>#get method not documented? I would assume its because the documentation generator isnt listing methods from the extended class, but why..? They're still important methods that should be documented. Also why has the documentation changed and now class properties and methods are not shown in a list at the top of the page? This seems an incredibly inefficient and ineffective way to document such an extensive library,
https://discord.js.org/docs/packages/collection/main/Collection:Class...message.channel.parent undefined in forum channel?
I'm getting an error where message.channel.parent is undefined. My intention is to cross-check the forum channel in which a user posts to make sure it's an "allowed channel". Am I not using this correctly to identify the parent forum channel of a new thread?
Unknown interaction for some commands in only one server
I have a bot that is sharded and is in a couple thousand servers and for some reason, in one server whenever a command is run, it shows "Unknown interaction" in the console while for the user it shows "Sending Command..." for a few seconds before updating to "This application did not respond.", I can't seem to figure out why this is happening as it even happens for commands that have deferReply on the first line and the error says unknown interaction right on that first line that defers the repl...
