38 lines
1.7 KiB
TypeScript
38 lines
1.7 KiB
TypeScript
// Module ID: 16251
|
|
// Function ID: 16252
|
|
// Name: handleVoiceChannelSelect
|
|
// Dependencies: [5214, 16252, 15829, 2]
|
|
|
|
// Module 16251 (handleVoiceChannelSelect)
|
|
import "initialize";
|
|
|
|
const require = arg1;
|
|
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 = require(16252) /* commonTriggerPointConfiguration */.VoiceCallTriggerPoint;
|
|
const obj = { guildId: null };
|
|
obj[0] = guildId;
|
|
VoiceCallTriggerPoint.trigger(obj);
|
|
}
|
|
};
|
|
prototype["handleCallCreate"] = function handleCallCreate() {
|
|
const VoiceCallTriggerPoint = require(16252) /* commonTriggerPointConfiguration */.VoiceCallTriggerPoint;
|
|
VoiceCallTriggerPoint.trigger();
|
|
};
|
|
prototype["handleUserSettingsModalOpen"] = function handleUserSettingsModalOpen() {
|
|
const OpenUserSettingsTriggerPoint = require(15829) /* commonTriggerPointConfiguration */.OpenUserSettingsTriggerPoint;
|
|
OpenUserSettingsTriggerPoint.trigger();
|
|
};
|
|
const commonTriggerPointManager = new CommonTriggerPointManager();
|
|
const result = require("commonTriggerPointConfiguration").fileFinishedImporting("modules/experiments/trigger_points/CommonTriggerPointManager.tsx");
|
|
|
|
export default commonTriggerPointManager;
|