mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-25 07:48:32 +00:00
ruin code more
This commit is contained in:
parent
45d678d52a
commit
2bcf5de3b9
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ import { findByPropsLazy } from "@webpack";
|
||||||
|
|
||||||
|
|
||||||
const API_URL = "https://timezonedb.catvibers.me/";
|
const API_URL = "https://timezonedb.catvibers.me/";
|
||||||
const Cache = new Map();
|
const Cache = new Map<string, Number | null>();
|
||||||
export const moment: typeof import("moment") = findByPropsLazy("parseTwoDigitYear");
|
export const moment: typeof import("moment") = findByPropsLazy("parseTwoDigitYear");
|
||||||
|
|
||||||
const getSettings = () => Vencord.Settings.plugins.Timezones;
|
const getSettings = () => Vencord.Settings.plugins.Timezones;
|
||||||
|
|
||||||
export async function getUserTimezone(discordID: string): Promise<Number | null> {
|
export async function getUserTimezone(discordID: string): Promise<Number | undefined | null> {
|
||||||
|
|
||||||
if (getSettings()[`timezones.${discordID}`])
|
if (getSettings()[`timezones.${discordID}`])
|
||||||
return Number(getSettings()[`timezones.${discordID}`]);
|
return Number(getSettings()[`timezones.${discordID}`]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue