diff options
author | Nico <nico@d3sox.me> | 2022-12-16 15:51:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 15:51:23 +0100 |
commit | 3efc79224fd96f6c8b92a31197afe45e9937dd6c (patch) | |
tree | 6850a5b0016e3f6dc5286e90fb924371a94124b4 /src/api/Commands/commandHelpers.ts | |
parent | 456164253d21beac703426d07bc6c7906cc3f4d4 (diff) | |
download | Vencord-3efc79224fd96f6c8b92a31197afe45e9937dd6c.tar.gz Vencord-3efc79224fd96f6c8b92a31197afe45e9937dd6c.tar.bz2 Vencord-3efc79224fd96f6c8b92a31197afe45e9937dd6c.zip |
[ShowHiddenChannels] Fix last message date (#342)
Diffstat (limited to 'src/api/Commands/commandHelpers.ts')
-rw-r--r-- | src/api/Commands/commandHelpers.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/api/Commands/commandHelpers.ts b/src/api/Commands/commandHelpers.ts index d363d6e..dd1196f 100644 --- a/src/api/Commands/commandHelpers.ts +++ b/src/api/Commands/commandHelpers.ts @@ -17,7 +17,8 @@ */ import { mergeDefaults } from "@utils/misc"; -import { findByCodeLazy, findByPropsLazy, waitFor } from "@webpack"; +import { findByCodeLazy, findByPropsLazy } from "@webpack"; +import { SnowflakeUtils } from "@webpack/common"; import { Message } from "discord-types/general"; import type { PartialDeep } from "type-fest"; @@ -26,9 +27,6 @@ import { Argument } from "./types"; const createBotMessage = findByCodeLazy('username:"Clyde"'); const MessageSender = findByPropsLazy("receiveMessage"); -let SnowflakeUtils: any; -waitFor("fromTimestamp", m => SnowflakeUtils = m); - export function generateId() { return `-${SnowflakeUtils.fromTimestamp(Date.now())}`; } |