Skip to content

Commit

Permalink
add message and link
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Oct 6, 2023
1 parent aa79dab commit dd07e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/slashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ const linkCommands: Record<string, string> = {
docker: `${docsDomain}/guides/docker-help`,
backup: `${docsDomain}/administration/backup-and-restore`,
github: 'https://github.com/immich-app/immich',
cli: `${docsDomain}/features/bulk-upload`
};
const helpTexts: Record<string, string> = {
'help ticket':
'Please open a <#1049703391762321418> ticket with more information and we can help you troubleshoot the issue.',
'reverse proxy': `This sounds like it could be a reverse proxy issue. Here's a link to the relevant documentation page: ${docsDomain}/administration/reverse-proxy.`,
'feature request': "For ideas or features you'd like Immich to have, feel free to [open a feature request in the Github discussions](https://github.com/immich-app/immich/discussions/new?category=feature-request). However, please make sure to search for similar requests first to avoid duplicates. "
};

@Discord()
Expand All @@ -41,7 +43,7 @@ export class Commands {

@Slash({ description: 'Text blocks for reoccurring questions' })
messages(
@SlashChoice('help ticket', 'reverse proxy')
@SlashChoice(...Object.keys(helpTexts))
@SlashOption({
description: 'Which message do you need',
name: 'type',
Expand Down

0 comments on commit dd07e1f

Please sign in to comment.