mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix: remove extra loops (#848)
* fix: remove extra loops Co-authored-by: Skillz4Killz <Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -15,8 +15,9 @@ export async function getChannelWebhooks(channelId: string) {
|
||||
)) as DiscordWebhook[];
|
||||
|
||||
return new Collection(
|
||||
result
|
||||
.map((webhook) => snakeKeysToCamelCase<Webhook>(webhook))
|
||||
.map((webhook) => [webhook.id, webhook]),
|
||||
result.map((webhook) => [
|
||||
webhook.id,
|
||||
snakeKeysToCamelCase<Webhook>(webhook),
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user