use camelCase for body members (#3849)

This commit is contained in:
Fleny
2024-08-16 20:30:46 +02:00
committed by GitHub
parent 352887c215
commit 943821ff9a
+3 -3
View File
@@ -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<DiscordFollowedChannel>(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<DiscordChannel>(rest.routes.channels.dm(), {
body: { recipient_id: userId },
body: { recipientId: userId },
})
},