mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix: not checking for guild when creating a channel
This commit is contained in:
parent
4d7fc036a1
commit
e0cfb7fb36
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class ChannelStore extends DataStore {
|
|||
add(data, guild, cache = true) {
|
||||
const existing = this.get(data.id);
|
||||
if (existing && existing._patch && cache) existing._patch(data);
|
||||
if (existing) {
|
||||
if (existing && guild) {
|
||||
guild.channels.add(existing);
|
||||
return existing;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue