Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (03/11/2023)
- 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
Loading