more fixxes

This commit is contained in:
ITOH
2021-05-01 18:42:46 +02:00
parent 51095db12f
commit eda4895da3
8 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ async function ifItFailsBlameWolf(options: CreateGuildChannel, _save = false) {
// Assertions
assertExists(channel);
assertEquals(channel.type, options.type || DiscordChannelTypes.GUILD_TEXT);
assertEquals(channel.type, options.type || DiscordChannelTypes.GuildText);
// Delay the execution by 5 seconds to allow CHANNEL_CREATE event to be processed
await delayUntil(10000, () => cache.channels.has(channel.id));