refactor: replace "return await" (#354)

This commit is contained in:
Ayyan
2021-01-09 21:48:02 +04:00
committed by GitHub
parent cd7973273e
commit 27fb44128f
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -303,11 +303,10 @@ export async function getChannelWebhooks(channelID: string) {
) {
throw new Error(Errors.MISSING_MANAGE_WEBHOOKS);
}
return await RequestManager.get(
return RequestManager.get(
endpoints.CHANNEL_WEBHOOKS(channelID),
) as Promise<
WebhookPayload[]
>;
) as Promise<WebhookPayload[]>;
}
interface EditChannelRequest {