diff --git "a/src/api/routes/channels/\043channel_id/webhooks.ts" "b/src/api/routes/channels/\043channel_id/webhooks.ts" index 7533fce..2060760 100644 --- "a/src/api/routes/channels/\043channel_id/webhooks.ts" +++ "b/src/api/routes/channels/\043channel_id/webhooks.ts" @@ -63,10 +63,17 @@ const instanceUrl = Config.get().api.endpointPublic || "http://localhost:3001"; - return res.json(webhooks.map(webhook => ({ - ...webhook, - url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token, - }))); + return res.json( + webhooks.map((webhook) => ({ + ...webhook, + url: + instanceUrl + + "/webhooks/" + + webhook.id + + "/" + + webhook.token, + })), + ); }, ); diff --git "a/src/api/routes/guilds/\043guild_id/webhooks.ts" "b/src/api/routes/guilds/\043guild_id/webhooks.ts" index 60c9818..47e1994 100644 --- "a/src/api/routes/guilds/\043guild_id/webhooks.ts" +++ "b/src/api/routes/guilds/\043guild_id/webhooks.ts" @@ -49,10 +49,17 @@ const instanceUrl = Config.get().api.endpointPublic || "http://localhost:3001"; - return res.json(webhooks.map(webhook => ({ - ...webhook, - url: instanceUrl + "/webhooks/" + webhook.id + "/" + webhook.token, - }))); + return res.json( + webhooks.map((webhook) => ({ + ...webhook, + url: + instanceUrl + + "/webhooks/" + + webhook.id + + "/" + + webhook.token, + })), + ); }, ); diff --git "a/src/api/routes/webhooks/\043webhook_id/index.ts" "b/src/api/routes/webhooks/\043webhook_id/index.ts" index c10bf22..59fdb76 100644 --- "a/src/api/routes/webhooks/\043webhook_id/index.ts" +++ "b/src/api/routes/webhooks/\043webhook_id/index.ts" @@ -11,7 +11,8 @@ router.get( "/", route({ - description: "Returns a webhook object for the given id. Requires the MANAGE_WEBHOOKS permission or to be the owner of the webhook.", + description: + "Returns a webhook object for the given id. Requires the MANAGE_WEBHOOKS permission or to be the owner of the webhook.", responses: { 200: { body: "APIWebhook",