decord/source/modules/app_channels/getAppChannelApplicationUnsupportedText.tsx

28 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 9752
// Function ID: 9753
2026-09-02 09:53:35 +00:00
// Name: getAppChannelApplicationUnsupportedText
// Dependencies: [9753, 1114, 2]
2026-09-02 09:53:35 +00:00
// Exports: default
// Module 9752 (getAppChannelApplicationUnsupportedText)
2026-09-02 09:53:35 +00:00
import set from "set" /* 2 */;
import GuildEmbeddedApplicationUnsupportedReason from "GuildEmbeddedApplicationUnsupportedReason" /* 9753 */;
2026-09-02 09:53:35 +00:00
const result = set.fileFinishedImporting("modules/app_channels/getAppChannelApplicationUnsupportedText.tsx");
export default function getAppChannelApplicationUnsupportedText(supported) {
if (!supported.supported) {
const reason = supported.reason;
if (GuildEmbeddedApplicationUnsupportedReason.GuildEmbeddedApplicationUnsupportedReason.REQUIRES_BOT === reason) {
const intl3 = tmp(1114).intl;
return intl3.string(tmp(1114).t.V4y5nG);
} else if (tmp(9753).GuildEmbeddedApplicationUnsupportedReason.SURFACE_NOT_SUPPORTED === reason) {
const intl2 = tmp(1114).intl;
return intl2.string(tmp(1114).t["iUWcU/"]);
2026-09-02 09:53:35 +00:00
} else {
const intl = tmp(1114).intl;
return intl.string(tmp(1114).t.GZa4J0);
2026-09-02 09:53:35 +00:00
}
}
};