Skip to content

Commit

Permalink
feat: Disabling migrated commands and adding a message to highlight t…
Browse files Browse the repository at this point in the history
…he same (#503)

* feat: Disabling migrated commands and adding a message to highlight the same

* CHANGELOG for feat: Disabling migrated commands and adding a message to highlight the same

* Removing welcome and docsearch commands

* Removing migrated handlers

* Migrating reported issues command

* Update CHANGELOG.md
  • Loading branch information
pdellaert authored Jan 27, 2024
1 parent eb5b737 commit cb9e8c6
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 577 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Update <small>_ January 2024</small>

- feat: Disabling migrated commands and adding a message to highlight the same (27/01/2024)
- refactor: change cdn url (07/01/2024)
- fix: update A32NX download links (03/01/2024)

Expand Down
72 changes: 72 additions & 0 deletions src/commands/general/migratedCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { MessageCommandDefinition } from '../../lib/command';
import { CommandCategory } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const migratedCommandEmbed = makeEmbed({
title: 'FlyByWire Discord Bot | Command replaced with a `/`-command',
description: 'The command your are trying to execute is no longer served as a prefix command. Instead look for a `/`-based command with the same functionality.',
});

export const migratedCommand: MessageCommandDefinition = {
name: [
'ask',
'av',
'avatar',
'ban',
'birthday',
'cache-update',
'cacheupdate',
'calc',
'count',
'deletewarn',
'deletewarning',
'delwarn',
'docsearch',
'documentation',
'doc',
'docs',
'ev',
'event',
'events',
'faq',
'flight',
'flights',
'issues',
'listwarn',
'listwarnings',
'liveflights',
'membercount',
'metar',
'migrated-command',
'ping',
'pr',
'removetimeout',
'reportedissues',
'roleassignment',
'roleinfo',
'rules',
'simbriefdata',
'slowmode',
'station',
'taf',
'timeout',
'unban',
'untimeout',
'vatdata',
'vatev',
'vatevents',
'vatsim',
'vatsimdata',
'vatsimevents',
'wa',
'warn',
'warnings',
'warns',
'welcome',
'whois',
'zulu',
],
description: 'Provides an explanation for migrated commands',
category: CommandCategory.GENERAL,
genericEmbed: migratedCommandEmbed,
};
Loading

0 comments on commit cb9e8c6

Please sign in to comment.