-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Disabling migrated commands and adding a message to highlight t…
…he same
- Loading branch information
Showing
2 changed files
with
126 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
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', | ||
'ev', | ||
'event', | ||
'events', | ||
'faq', | ||
'flight', | ||
'flights', | ||
'listwarn', | ||
'listwarnings', | ||
'liveflights', | ||
'membercount', | ||
'metar', | ||
'migrated-command', | ||
'ping', | ||
'pr', | ||
'removetimeout', | ||
'roleassignment', | ||
'roleinfo', | ||
'rules', | ||
'simbriefdata', | ||
'slowmode', | ||
'station', | ||
'taf', | ||
'timeout', | ||
'unban', | ||
'untimeout', | ||
'vatdata', | ||
'vatev', | ||
'vatevents', | ||
'vatsim', | ||
'vatsimdata', | ||
'vatsimevents', | ||
'wa', | ||
'warn', | ||
'warnings', | ||
'warns', | ||
'whois', | ||
'zulu', | ||
], | ||
description: 'Provides an explanation for migrated commands', | ||
category: CommandCategory.GENERAL, | ||
genericEmbed: migratedCommandEmbed, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters