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/webpack | |
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/webpack')
-rw-r--r-- | src/webpack/common.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index 81bea31..42db758 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -76,6 +76,9 @@ export const TextArea = findByCodeLazy("handleSetRef", "textArea") as React.Comp export const Select = LazyComponent(() => findByCode("optionClassName", "popoutPosition", "autoFocus", "maxVisibleItems")); export const Slider = LazyComponent(() => findByCode("closestMarkerIndex", "stickToMarkers")); +export let SnowflakeUtils: { fromTimestamp: (timestamp: number) => string, extractTimestamp: (snowflake: string) => number }; +waitFor(["fromTimestamp", "extractTimestamp"], m => SnowflakeUtils = m); + export let Parser: any; export let Alerts: { show(alert: { |