mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
use camelCase for body members (#3849)
This commit is contained in:
@@ -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 },
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user