41 lines
1.9 KiB
TypeScript
41 lines
1.9 KiB
TypeScript
// Module ID: 17167
|
|
// Function ID: 17168
|
|
// Name: handleVoiceChannelSelect
|
|
// Dependencies: [5495, 17168, 16739, 2]
|
|
|
|
// Module 17167 (handleVoiceChannelSelect)
|
|
import initializeDefault from "initialize" /* 5495 */;
|
|
import commonTriggerPointConfiguration from "commonTriggerPointConfiguration" /* 16739 */;
|
|
import commonTriggerPointConfiguration2 from "commonTriggerPointConfiguration" /* 17168 */;
|
|
|
|
require = arg1;
|
|
initializeDefault;
|
|
class CommonTriggerPointManager extends tmp2 {
|
|
constructor() {
|
|
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
applyArgumentsResult.actions = { VOICE_CHANNEL_SELECT: applyArgumentsResult.handleVoiceChannelSelect, CALL_CREATE: applyArgumentsResult.handleCallCreate, USER_SETTINGS_MODAL_OPEN: applyArgumentsResult.handleUserSettingsModalOpen };
|
|
return applyArgumentsResult;
|
|
}
|
|
}
|
|
const prototype = CommonTriggerPointManager.prototype;
|
|
prototype["handleVoiceChannelSelect"] = function handleVoiceChannelSelect(guildId) {
|
|
guildId = guildId.guildId;
|
|
if (null != guildId.channelId) {
|
|
const VoiceCallTriggerPoint = commonTriggerPointConfiguration2.VoiceCallTriggerPoint;
|
|
const obj = { guildId: null };
|
|
obj[0] = guildId;
|
|
VoiceCallTriggerPoint.trigger(obj);
|
|
}
|
|
};
|
|
prototype["handleCallCreate"] = function handleCallCreate() {
|
|
const VoiceCallTriggerPoint = commonTriggerPointConfiguration2.VoiceCallTriggerPoint;
|
|
VoiceCallTriggerPoint.trigger();
|
|
};
|
|
prototype["handleUserSettingsModalOpen"] = function handleUserSettingsModalOpen() {
|
|
const OpenUserSettingsTriggerPoint = commonTriggerPointConfiguration.OpenUserSettingsTriggerPoint;
|
|
OpenUserSettingsTriggerPoint.trigger();
|
|
};
|
|
const commonTriggerPointManager = new CommonTriggerPointManager();
|
|
const result = require("set").fileFinishedImporting("modules/experiments/trigger_points/CommonTriggerPointManager.tsx");
|
|
|
|
export default commonTriggerPointManager;
|