decord/source/modules/guild_settings/GuildSettingsFetchActionCreators.tsx

34 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8249
2026-07-27 11:26:19 +00:00
// Function ID: 66263
2026-07-20 16:05:17 +00:00
// Name: _fetchGuildIntegrationsApplications
2026-07-25 08:10:48 +00:00
// Dependencies: [5, 4154, 1858, 653, 507, 686, 2]
2026-07-20 16:05:17 +00:00
// Exports: fetchGuildEmbed, fetchGuildIntegrationsApplications
2026-07-25 08:10:48 +00:00
// Module 8249 (_fetchGuildIntegrationsApplications)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher";
import { BasicApplicationRecord } from "_callSuper";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Endpoints } from "ME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _fetchGuildIntegrationsApplications() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/guild_settings/GuildSettingsFetchActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const fetchGuildIntegrationsApplications = function fetchGuildIntegrationsApplications(id) {
return _fetchGuildIntegrationsApplications(...arguments);
};
export const fetchGuildEmbed = function fetchGuildEmbed(arg0) {
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
let obj = { url: Endpoints.GUILD_WIDGET(arg0), oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
const value = HTTP.get(obj);
return value.then((body) => {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[5]);
2026-07-20 16:05:17 +00:00
obj = { type: "GUILD_SETTINGS_SET_WIDGET", enabled: body.body.enabled, channelId: body.body.channel_id };
obj.dispatch(obj);
});
};