Discord: gate guild prefix to numeric keys

This commit is contained in:
Shadow
2026-02-13 10:57:16 -06:00
parent 397011bd78
commit 5325d2ca51
2 changed files with 4 additions and 2 deletions

View File

@@ -394,7 +394,8 @@ export const discordOnboardingAdapter: ChannelOnboardingAdapter = {
const channels = value?.channels ?? {};
const channelKeys = Object.keys(channels);
if (channelKeys.length === 0) {
return [guildKey];
const input = /^\d+$/.test(guildKey) ? `guild:${guildKey}` : guildKey;
return [input];
}
return channelKeys.map((channelKey) => `${guildKey}/${channelKey}`);
},