Skip to content

Commit

Permalink
Fixes: #112 Deprecation warning for sendMessage
Browse files Browse the repository at this point in the history
2EZ
  • Loading branch information
ctsstc committed Apr 25, 2020
1 parent 92a6d58 commit 366a67d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion __tests__/commands/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ let sendMock: MockedMessage;
beforeEach(() => {
sendMock = jest.fn();
mockMessage.channel.send = sendMock;
mockMessage.channel.sendMessage = sendMock;
});

describe('Version Command', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default Version = class {
}

public static execute(args: string[], msg: Message) {
return msg.channel.sendMessage(`Hackbot ${config.env} is running v${version}`);
return msg.channel.send(`Hackbot ${config.env} is running v${version}`);
}

};

0 comments on commit 366a67d

Please sign in to comment.