This commit is contained in:
ITOH
2021-11-14 18:22:30 +01:00
+4 -2
View File
@@ -28,8 +28,10 @@ export async function updateBotVoiceState(
{
channel_id: options.channelId,
suppress: options.suppress,
request_to_speak_timestamp: bot.utils.hasProperty(options, "requestToSpeakTimestamp") ? options.requestToSpeakTimestamp : undefined,
user_id: bot.utils.hasProperty(options, "userId") ? options.userId : undefined
request_to_speak_timestamp: bot.utils.hasProperty(options, "requestToSpeakTimestamp")
? options.requestToSpeakTimestamp
: undefined,
user_id: bot.utils.hasProperty(options, "userId") ? options.userId : undefined,
}
);
}