diff --git a/src/helpers/channels/get_channel_webhooks.ts b/src/helpers/channels/get_channel_webhooks.ts index 78bf1caca..bdea2baf5 100644 --- a/src/helpers/channels/get_channel_webhooks.ts +++ b/src/helpers/channels/get_channel_webhooks.ts @@ -15,8 +15,9 @@ export async function getChannelWebhooks(channelId: string) { )) as DiscordWebhook[]; return new Collection( - result - .map((webhook) => snakeKeysToCamelCase(webhook)) - .map((webhook) => [webhook.id, webhook]), + result.map((webhook) => [ + webhook.id, + snakeKeysToCamelCase(webhook), + ]), ); } diff --git a/src/helpers/invites/get_channel_invites.ts b/src/helpers/invites/get_channel_invites.ts index b75b831f9..f1a489693 100644 --- a/src/helpers/invites/get_channel_invites.ts +++ b/src/helpers/invites/get_channel_invites.ts @@ -15,8 +15,6 @@ export async function getChannelInvites(channelId: string) { )) as DiscordInvite[]; return new Collection( - result - .map((invite) => snakeKeysToCamelCase(invite)) - .map((invite) => [invite.code, invite]), + result.map((invite) => [invite.code, snakeKeysToCamelCase(invite)]), ); } diff --git a/src/helpers/invites/get_invites.ts b/src/helpers/invites/get_invites.ts index e8aa0d594..778a243d6 100644 --- a/src/helpers/invites/get_invites.ts +++ b/src/helpers/invites/get_invites.ts @@ -15,8 +15,6 @@ export async function getInvites(guildId: string) { )) as DiscordInvite[]; return new Collection( - result - .map((invite) => snakeKeysToCamelCase(invite)) - .map((invite) => [invite.code, invite]), + result.map((invite) => [invite.code, snakeKeysToCamelCase(invite)]), ); } diff --git a/src/helpers/roles/get_roles.ts b/src/helpers/roles/get_roles.ts index 2edeb648e..29b08998b 100644 --- a/src/helpers/roles/get_roles.ts +++ b/src/helpers/roles/get_roles.ts @@ -18,8 +18,6 @@ export async function getRoles(guildId: string) { )) as DiscordRole[]; return new Collection( - result - .map((role) => snakeKeysToCamelCase(role)) - .map((role) => [role.id, role]), + result.map((role) => [role.id, snakeKeysToCamelCase(role)]), ); } diff --git a/src/helpers/webhooks/get_webhooks.ts b/src/helpers/webhooks/get_webhooks.ts index ff8cbf224..32fe734da 100644 --- a/src/helpers/webhooks/get_webhooks.ts +++ b/src/helpers/webhooks/get_webhooks.ts @@ -15,8 +15,9 @@ export async function getWebhooks(guildId: string) { )) as DiscordWebhook[]; return new Collection( - result - .map((webhook) => snakeKeysToCamelCase(webhook)) - .map((webhook) => [webhook.id, webhook]), + result.map((webhook) => [ + webhook.id, + snakeKeysToCamelCase(webhook), + ]), ); }