Skip to content

Commit

Permalink
GH-292: Deprecate usage of text command
Browse files Browse the repository at this point in the history
  • Loading branch information
utarwyn committed Jul 27, 2022
1 parent 529b814 commit 32bba8e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bot/TicTacToeBot.ts
Expand Up @@ -90,6 +90,7 @@ export default class TicTacToeBot {
* Programmatically handles a discord.js message to request a game.
*
* @param message Discord.js message object
* @deprecated use chat command interaction instead
*/
public handleMessage(message: Message): void {
this.command.handleMessage(message, true);
Expand Down
1 change: 1 addition & 0 deletions src/bot/command/GameCommand.ts
Expand Up @@ -39,6 +39,7 @@ export default class GameCommand {
*
* @param message discord.js message instance
* @param noTrigger true to bypass trigger checks
* @deprecated use chat command interaction instead
*/
public async handleMessage(message: Message, noTrigger = false): Promise<void> {
if (
Expand Down
2 changes: 2 additions & 0 deletions src/config/CommandConfig.ts
Expand Up @@ -15,6 +15,8 @@ export default interface CommandConfig {
commandOptionName?: string;
/**
* Text command used to start a new game.
*
* @deprecated use chat command interaction instead
*/
textCommand?: string;
}
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -88,6 +88,7 @@ class TicTacToe {
* Programmatically handles a discord.js message to request a game.
*
* @param message Discord.js message object
* @deprecated use chat command interaction instead
*/
public handleMessage(message: Message): void {
this.bot.handleMessage(message);
Expand Down

0 comments on commit 32bba8e

Please sign in to comment.