fix: stabilize tests

This commit is contained in:
Skillz4Killz
2021-11-19 04:23:30 +00:00
committed by GitHub
parent c32d588c60
commit b51d341524
4 changed files with 894 additions and 959 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ export function transformScheduledEvent(
scheduledStartTime: Date.parse(payload.scheduled_start_time),
scheduledEndTime: payload.scheduled_end_time ? Date.parse(payload.scheduled_end_time) : undefined,
entityId: payload.entity_id ? bot.transformers.snowflake(payload.entity_id) : undefined,
creator: bot.transformers.user(bot, payload.creator!),
creator: payload.creator ? bot.transformers.user(bot, payload.creator) : undefined,
name: payload.name,
description: payload.description,
@@ -40,7 +40,7 @@ export interface DiscordenoScheduledEvent {
/** the channel id in which the scheduled event will be hosted if specified */
channelId?: bigint;
/** the id of the user that created the scheduled event */
creatorId?: bigint;
creatorId: bigint;
/** the name of the scheduled event */
name: string;
/** the description of the scheduled event */