Skip to content

Commit

Permalink
Merge pull request #116 from osu-cascades/112-fix-deprecation-warning…
Browse files Browse the repository at this point in the history
…-text-channel-send-message
  • Loading branch information
ctsstc authored Apr 25, 2020
2 parents 92a6d58 + 6ecee72 commit 3f538a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hackbot",
"version": "2.1.0",
"version": "2.1.1",
"description": "Discord bot for the Cascades Tech Club Discord server.",
"repository": {
"type": "git",
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 3f538a9

Please sign in to comment.