From 943821ff9a48669a773e967b8bb7b29a5542db46 Mon Sep 17 00:00:00 2001 From: Fleny Date: Fri, 16 Aug 2024 20:30:46 +0200 Subject: [PATCH] use camelCase for body members (#3849) --- packages/rest/src/manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rest/src/manager.ts b/packages/rest/src/manager.ts index b789d16cc..6d4183087 100644 --- a/packages/rest/src/manager.ts +++ b/packages/rest/src/manager.ts @@ -954,7 +954,7 @@ export function createRestManager(options: CreateRestManagerOptions): RestManage await rest.patch(rest.routes.guilds.voice(guildId), { body: { ...options, - request_to_speak_timestamp: options.requestToSpeakTimestamp + requestToSpeakTimestamp: options.requestToSpeakTimestamp ? new Date(options.requestToSpeakTimestamp).toISOString() : options.requestToSpeakTimestamp, }, @@ -1018,7 +1018,7 @@ export function createRestManager(options: CreateRestManagerOptions): RestManage async followAnnouncement(sourceChannelId, targetChannelId, reason) { return await rest.post(rest.routes.channels.follow(sourceChannelId), { body: { - webhook_channel_id: targetChannelId, + webhookChannelId: targetChannelId, }, reason, }) @@ -1154,7 +1154,7 @@ export function createRestManager(options: CreateRestManagerOptions): RestManage async getDmChannel(userId) { return await rest.post(rest.routes.channels.dm(), { - body: { recipient_id: userId }, + body: { recipientId: userId }, }) },