|
1 | 1 | import { |
2 | 2 | ActionRowBuilder, |
| 3 | + APIEmbedField, |
3 | 4 | BaseMessageOptions, |
4 | 5 | ButtonBuilder, |
5 | 6 | ButtonStyle, |
@@ -38,19 +39,37 @@ export async function getSupportPolicyEmbed(): Promise<EmbedBuilder> { |
38 | 39 | ); |
39 | 40 | } |
40 | 41 |
|
| 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 | + |
41 | 63 | const currentlySupportedSection = |
42 | 64 | versionLines.length > 0 |
43 | 65 | ? `**Currently Supported Versions:**\n${versionLines.join('\n')}\n\n` |
44 | 66 | : ''; |
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); |
54 | 73 | } |
55 | 74 |
|
56 | 75 | export function getSupportPolicyLinkButton() { |
|
0 commit comments