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

Initial allowed_mentions implementation #708

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

swarley
Copy link
Contributor

@swarley swarley commented Apr 9, 2020

Summary

Adds allowed_mentions option to message sending methods.
Closes #704


Changed

The following methods had the allowed_mentions argument added

  • API::Channel.create_message
  • Bot#send_message
  • Bot#send_temporary_message
  • Channel#send_message
  • Channel#send_temporary_message
  • Events::MessageEvent#send_message

Channel#send_embed - added tts and allowed_mentions arguments

Events::MessageEvent#send_embed - added tts and allowed_mentions arguments

Events::MessageEvent#send_temporary_message - added tts, embed, and allowed_mentions arguments.


Doc strings need input, I couldn't think of a clean way to DRY across these methods

@swarley
Copy link
Contributor Author

swarley commented Apr 23, 2020

Also closes #693, as the temporary message methods are given the same capabilities as the non temporary counter parts

@Daniel-Worrall
Copy link
Contributor

This was merged (with changes) via shardlab/discordrb@e53db8a in the new repo and released in v3.4.0 and can be closed.

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.

Support allowed_mentions
2 participants