mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-14 09:03:03 -04:00
[ShowHiddenChannels] Fix last message date (#342)
This commit is contained in:
parent
456164253d
commit
3efc79224f
3 changed files with 7 additions and 6 deletions
|
@ -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())}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue