-
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 (#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
Showing
8 changed files
with
140 additions
and
577 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
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,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, | ||
}; |
Oops, something went wrong.