🐛 Replace the guild as the manager's guild if it's undefined
This commit is contained in:
parent
b4a1ae389d
commit
9c5aea1ef8
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ export class GuildVoiceStatesManager extends BaseManager<
|
||||||
|
|
||||||
const guild =
|
const guild =
|
||||||
raw.guild_id === undefined
|
raw.guild_id === undefined
|
||||||
? undefined
|
? this.guild
|
||||||
: await this.client.guilds.get(raw.guild_id)
|
: await this.client.guilds.get(raw.guild_id)
|
||||||
|
|
||||||
return new VoiceState(this.client, raw, {
|
return new VoiceState(this.client, raw, {
|
||||||
|
@ -57,7 +57,7 @@ export class GuildVoiceStatesManager extends BaseManager<
|
||||||
arr.map(async (raw) => {
|
arr.map(async (raw) => {
|
||||||
const guild =
|
const guild =
|
||||||
raw.guild_id === undefined
|
raw.guild_id === undefined
|
||||||
? undefined
|
? this.guild
|
||||||
: await this.client.guilds.get(raw.guild_id)
|
: await this.client.guilds.get(raw.guild_id)
|
||||||
|
|
||||||
return new VoiceState(this.client, raw, {
|
return new VoiceState(this.client, raw, {
|
||||||
|
|
Loading…
Reference in a new issue