Code fix #3, requirements again
This commit is contained in:
parent
60164122bf
commit
734133bcca
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ export class Guild extends Base {
|
||||||
async awaitAvailability(delay: number = 1000): Promise<void> {
|
async awaitAvailability(delay: number = 1000): Promise<void> {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
if(!this.unavailable) return;
|
if(!this.unavailable) return;
|
||||||
let listener = (guild: Guild): void => {
|
const listener = (guild: Guild): void => {
|
||||||
if (guild.id === this.id) {
|
if (guild.id === this.id) {
|
||||||
this.client.removeListener('guildLoaded', listener);
|
this.client.removeListener('guildLoaded', listener);
|
||||||
resolve();
|
resolve();
|
||||||
|
|
Loading…
Reference in a new issue