interaction.channel.guildId undefined after ephemeral reply
Hello, I've been having an issue since updating my script to v14.16.1. The issue seems to be that responding to interactions with ephemeral messages can sometimes cause the guildId of the channel in the cache to become undefined. It does not happen every time, but usually occurs within 1-3 interactions.
I have not been able to reproduce the error without the DirectMessages intent and Channel partial, even though the interaction is from a guild channel. The bot is installed in the guild and can view the channel.
I'm thinking this is a bug, but if not, can someone explain why the behavior seems inconsistent? Thanks in advance.
Minimum reproducible example:
Node v20.17.0 and discord.js@14.16.1
I have not been able to reproduce the error without the DirectMessages intent and Channel partial, even though the interaction is from a guild channel. The bot is installed in the guild and can view the channel.
I'm thinking this is a bug, but if not, can someone explain why the behavior seems inconsistent? Thanks in advance.
Minimum reproducible example:
Node v20.17.0 and discord.js@14.16.1


