mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
[helper] Fix entity metadata (#2595)
* change to null if no location * style: deno fmt
This commit is contained in:
@@ -53,7 +53,7 @@ export async function editScheduledEvent(
|
||||
bot.constants.routes.GUILD_SCHEDULED_EVENT(guildId, eventId),
|
||||
{
|
||||
channel_id: options.channelId === null ? null : options.channelId?.toString(),
|
||||
entity_metadata: options.location ? { location: options.location } : undefined,
|
||||
entity_metadata: options.location ? { location: options.location } : null,
|
||||
name: options.name,
|
||||
description: options.description,
|
||||
scheduled_start_time: options.scheduledStartTime ? new Date(options.scheduledStartTime).toISOString() : undefined,
|
||||
|
||||
Reference in New Issue
Block a user