You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we do transfer the messages to the new channel, however, each message still has the old channel (due to Message#channel not being a getter but a value)
The most straight-forward and least hacky solution I can think of would be to make Message#channel a getter which retrieves this from cache instead. I can't find any reason so far why this would benefit from being a fix value vs. a getter
Alternatively this could be addressed by iterating over the message cache and setting the new channel to each message (though that seems to be quite the elaborate and hacky work-around)
Please describe the problem you are having in as much detail as possible:
message#channel
still returns old TextChannel instance after change to news type channelInclude a reproducible code sample here, if possible:
<Message>.channel
inside this (now news) channelobserve: you get a TextChannel of type GUILD_TEXT
reason:
discord.js/src/client/actions/ChannelUpdate.js
Lines 15 to 19 in cd47a52
we do transfer the messages to the new channel, however, each message still has the old channel (due to Message#channel not being a getter but a value)
Further details:
Relevant client options:
GUILDS
,GUILD_MESSAGES
The text was updated successfully, but these errors were encountered: