From cf63114fb971fdc04fffda8e883a097c144e6c59 Mon Sep 17 00:00:00 2001 From: maenDisease <90428263+maenDisease@users.noreply.github.com> Date: Sun, 14 Aug 2022 20:22:01 -0400 Subject: [PATCH] Fix Construction Error (Use LocaleManager) --- Plugins/SendTimestamps/SendTimestamps.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/SendTimestamps/SendTimestamps.plugin.js b/Plugins/SendTimestamps/SendTimestamps.plugin.js index 416be79..5a60ddc 100644 --- a/Plugins/SendTimestamps/SendTimestamps.plugin.js +++ b/Plugins/SendTimestamps/SendTimestamps.plugin.js @@ -1,6 +1,6 @@ /** * @name SendTimestamps - * @version 2.1.7 + * @version 2.1.8 * @description Send timestamps in your messages easily by adding them in {{...}} or using the button. * @author Taimoor * @authorId 220161488516546561 @@ -84,7 +84,7 @@ module.exports = (() => { Modals, DOMTools, WebpackModules, - DiscordModules: { React, MessageActions, Slider, Dropdown, SwitchRow, UserSettingsStore }, + DiscordModules: { React, MessageActions, Slider, Dropdown, SwitchRow, LocaleManager }, } = Api; const ComponentDispatch = WebpackModules.getByProps('ComponentDispatch').ComponentDispatch; const ComponentActions = WebpackModules.getByProps('ComponentActions').ComponentActions; @@ -221,7 +221,7 @@ input[type='date']::-webkit-calendar-picker-indicator { }; this.forceOnRight = false; - this.locale = UserSettingsStore.locale; + this.locale = LocaleManager.getLocale() ?? 'en'; this.sendFormatOptions = { 0: 'F',