fix command dispatcher for new caching
This commit is contained in:
parent
17fab4658b
commit
c2bed24794
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ bot.on("messageCreate", async (msg) => {
|
|||
) {
|
||||
const newChannel = await bot.getDMChannel(msg.author.id);
|
||||
if (msg.channel.id == newChannel.id) msg.channel = newChannel;
|
||||
} else if (msg.guildID && !(msg.channel instanceof Eris.Channel)) {
|
||||
const newChannel = bot.guilds.get(msg.guildID).channels.get(msg.channel.id);
|
||||
if (newChannel) msg.channel = newChannel;
|
||||
}
|
||||
|
||||
// if we still have no dm channel (threads cause this too)
|
||||
|
|
Loading…
Reference in a new issue