decord/source/modules/headless_tasks/android/MuteAction.tsx
2026-07-23 10:11:24 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 16625
// Function ID: 129658
// Name: promise
// Dependencies: [662, 16623, 3712, 5079, 5073, 2]
// Module 16625 (promise)
import { MuteUntilSeconds } from "MAX_FAVORITES";
let result = require("t").fileFinishedImporting("modules/headless_tasks/android/MuteAction.tsx");
export default (arg0) => {
let closure_0 = arg0;
return new Promise((arg0) => {
let closure_0 = arg0;
outer1_1(outer1_2[1]).awaitStorage(() => {
let toISOStringResult = null;
if (-1 !== lib.muteTime) {
let obj = outer2_1(outer2_2[2])();
let HOURS_1 = lib.muteTime;
if (null == HOURS_1) {
HOURS_1 = outer2_3.HOURS_1;
}
toISOStringResult = obj.add(HOURS_1, "second").toISOString();
const addResult = obj.add(HOURS_1, "second");
}
obj = { muted: true, mute_config: obj };
obj = { selected_time_window: outer2_3.HOURS_1, end_time: toISOStringResult };
const result = outer2_1(outer2_2[3]).updateChannelOverrideSettings(lib.guildId, lib.channelId, obj, lib(outer2_2[4]).NotificationLabels.Muted);
lib(true);
});
});
};