Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate TextChannel#sendMessage to #send to fix deprecation warning #267

Merged

Conversation

Throne3d
Copy link
Collaborator

@Throne3d Throne3d commented Jul 11, 2017

Fixes #266, changing references to "sendMessage" to "send". It seems to work just fine with some brief testing and this reflects the fact the method seems to just be a passthrough:
https://github.com/hydrabolt/discord.js/blob/11.1.0/src/structures/interfaces/TextBasedChannel.js#L415

This also changes the test stub "sendMessageStub" to be "sendStub" to reflect the name change.

… For some reason GitHub is telling me this can't automatically merge so I'm not sure if this is going to act weirdly when I create the PR. I had my master upstream set weirdly.

This has been tested manually with:

  • Sending a command from IRC to Discord (with a prelude)
  • Sending a message from IRC to Discord
  • Renicking in IRC with ircStatusNotices enabled

(which should test each main path)

Fixes reactiflux#266, changing references to "sendMessage" to "send". It seems to
work just fine with some brief testing and this reflects the fact the
method seems to just be a passthrough:
https://github.com/hydrabolt/discord.js/blob/11.1.0/src/structures/interfaces/TextBasedChannel.js#L415

This also changes the test stub "sendMessageStub" to be "sendStub" to
reflect the name change.
@Throne3d Throne3d force-pushed the fix/deprecation-sendmessage-send branch from 8b73d08 to 7f7505c Compare July 11, 2017 20:10
@coveralls
Copy link

coveralls commented Jul 11, 2017

Coverage Status

Coverage remained the same at 98.507% when pulling 7f7505c on Throne3d:fix/deprecation-sendmessage-send into c9299a6 on reactiflux:master.

Copy link
Member

@ekmartin ekmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ekmartin ekmartin merged commit 726100e into reactiflux:master Jul 15, 2017
@Throne3d Throne3d deleted the fix/deprecation-sendmessage-send branch July 15, 2017 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants