fix(misc): check whether guilds' loaded every 2s (#353)

* fix(misc): check whether guilds' loaded every 2s

* unavailable_guilds -> guilds

* guilds -> unavailable_guilds

* Separate unavailable guild  type

* Clean up and apply suggested changes
This commit is contained in:
Ayyan
2021-01-09 21:39:25 +04:00
committed by GitHub
parent e5a8f3b358
commit cd7973273e
3 changed files with 38 additions and 15 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export async function createWebhook(
throw new Error(Errors.INVALID_WEBHOOK_NAME);
}
return await RequestManager.post(
return RequestManager.post(
endpoints.CHANNEL_WEBHOOKS(channelID),
{
...options,