decord/alpha/source/modules/vibegrations/lib/VibegrationsPatchNotesChannel.tsx
github-actions 97fd043558 chore: update source for alpha 347.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-19 06:52:51 +00:00

38 lines
1.5 KiB
TypeScript

// Module ID: 16980
// Function ID: 16981
// Name: VibegrationsPatchNotesChannel
// Dependencies: [1115, 3678, 510, 2]
// Exports: formatPlaySuffix, lastPatchNotesChannel, rememberPatchNotesChannel
// Module 16980 (VibegrationsPatchNotesChannel)
import Storage3 from "Storage" /* 510 */;
import util from "util" /* 1115 */;
import _modDef3678 from "module_3678" /* 3678 */;
import size from "module_2" /* 2 */;
const VibegrationsPatchNotesLastChannels = "VibegrationsPatchNotesLastChannels";
const combined = "<#" + "9".repeat(20) + ">";
let result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsPatchNotesChannel.tsx");
export const PLAY_LINE_CHANNEL_PLACEHOLDER = combined;
export const formatPlaySuffix = function formatPlaySuffix(PLAY_LINE_CHANNEL_PLACEHOLDER) {
const intl = util.intl;
return "\n\n" + intl.formatToPlainString(_modDef3678.bhoZhI, { channel: PLAY_LINE_CHANNEL_PLACEHOLDER });
};
export const lastPatchNotesChannel = function lastPatchNotesChannel(guildId) {
const Storage = Storage3.Storage;
value = Storage.get(VibegrationsPatchNotesLastChannels);
let tmp2;
if (value != null) {
tmp2 = value[guildId];
}
return tmp2;
};
export const rememberPatchNotesChannel = function rememberPatchNotesChannel(arg0, id) {
const Storage = Storage3.Storage;
const obj = {};
const Storage2 = Storage3.Storage;
const merged = Object.assign(Storage2.get(VibegrationsPatchNotesLastChannels));
obj[arg0] = id;
const result = Storage.set(VibegrationsPatchNotesLastChannels, obj);
};