39 lines
1.5 KiB
TypeScript
39 lines
1.5 KiB
TypeScript
// Module ID: 8182
|
|
// Function ID: 8183
|
|
// Name: isPublicSystemMessage
|
|
// Dependencies: [8183, 676, 8184, 8185, 698, 4538, 2]
|
|
// Exports: getPublicSystemMessageAvatar, isPublicSystemMessage, trackEnableCommunityFlow
|
|
|
|
// Module 8182 (isPublicSystemMessage)
|
|
import PUBLIC_SUCCESS_MODAL_SEEN_KEY from "PUBLIC_SUCCESS_MODAL_SEEN_KEY";
|
|
import { AnalyticEvents } from "ME";
|
|
|
|
let c3;
|
|
let c4;
|
|
let c5;
|
|
({ PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID: c3, PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID: c4, ENABLE_COMMUNITY_FLOW_MODAL_KEY: c5 } = PUBLIC_SUCCESS_MODAL_SEEN_KEY);
|
|
const result = require("isCrosspost").fileFinishedImporting("modules/public_guilds/PublicGuildsUtils.tsx");
|
|
|
|
export const isPublicSystemMessage = function isPublicSystemMessage(message) {
|
|
let tmp = importDefault(8184)(message);
|
|
if (tmp) {
|
|
tmp = message.messageReference.guild_id === closure_3;
|
|
}
|
|
if (!tmp) {
|
|
let tmp4 = null != message.author;
|
|
if (tmp4) {
|
|
tmp4 = message.author.id === closure_4;
|
|
}
|
|
tmp = tmp4;
|
|
}
|
|
return tmp;
|
|
};
|
|
export const getPublicSystemMessageAvatar = function getPublicSystemMessageAvatar() {
|
|
return importDefault(8185);
|
|
};
|
|
export const trackEnableCommunityFlow = function trackEnableCommunityFlow(fromStep) {
|
|
let obj = importDefault(698);
|
|
obj = { flow_type: closure_5, from_step: fromStep.fromStep, to_step: fromStep.toStep };
|
|
const merged = Object.assign(require(4538) /* collectGuildAnalyticsMetadata */.collectGuildAnalyticsMetadata(fromStep.guildId));
|
|
obj.track(AnalyticEvents.USER_FLOW_TRANSITION, obj);
|
|
};
|