Skip to content

Commit a8abca6

Browse files
committed
chore: improve formatting of support policy embed
1 parent 4251a56 commit a8abca6

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

src/interactions/commands/handlers/info/info-helpers.ts

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
ActionRowBuilder,
3+
APIEmbedField,
34
BaseMessageOptions,
45
ButtonBuilder,
56
ButtonStyle,
@@ -38,19 +39,37 @@ export async function getSupportPolicyEmbed(): Promise<EmbedBuilder> {
3839
);
3940
}
4041

42+
const fields: APIEmbedField[] = [];
43+
44+
if (versionLines.length > 0) {
45+
fields.push({
46+
name: 'Currently Supported Versions',
47+
value: versionLines.join('\n'),
48+
inline: false,
49+
});
50+
}
51+
52+
fields.push({
53+
name: 'Policy Summary',
54+
value: [
55+
'- Latest stable release is always supported',
56+
'- Previous stable releases are supported for up to **30 days** after a newer stable update',
57+
'- Betas are unsupported once a newer beta or corresponding stable release is available',
58+
'- Nightly builds receive limited support due to their unstable nature',
59+
].join('\n'),
60+
inline: false,
61+
});
62+
4163
const currentlySupportedSection =
4264
versionLines.length > 0
4365
? `**Currently Supported Versions:**\n${versionLines.join('\n')}\n\n`
4466
: '';
45-
return getBaseEmbed().setTitle('Support Policy').setDescription(`
46-
${currentlySupportedSection}**Policy Summary:**
47-
- Latest stable release is always supported
48-
- Previous stable releases are supported for up to **30 days** after a newer stable update
49-
- Betas are unsupported once a newer beta or corresponding stable release is available
50-
- Nightly builds receive limited support due to their unstable nature
51-
52-
To receive support, please update to a supported version of Firebot.
53-
`);
67+
return getBaseEmbed()
68+
.setTitle('Support Policy')
69+
.setDescription(
70+
'To provide the best possible support experience for both our users and volunteers, we maintain a support policy that defines which versions of Firebot are eligible for assistance.'
71+
)
72+
.addFields(...fields);
5473
}
5574

5675
export function getSupportPolicyLinkButton() {

0 commit comments

Comments
 (0)