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

Add support for embedded objects #8

Merged
merged 3 commits into from
Aug 14, 2017
Merged

Add support for embedded objects #8

merged 3 commits into from
Aug 14, 2017

Conversation

messerli90
Copy link
Contributor

This adds a second optional parameter when creating a Message to add an embedded object.

#7 Embedded Objects
https://discordapp.com/developers/docs/resources/channel#embed-object

@codyphobe codyphobe merged commit c059d9d into laravel-notification-channels:master Aug 14, 2017
@codyphobe
Copy link
Contributor

Thanks!

*
* @return static
*/
public static function create($body = '')
public static function create($body = '', $embed = [])

Choose a reason for hiding this comment

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

@messerli90 not sure if i'm missing something obvious but the $embed param here is unused? I had to construct an object to pass through an embed, static create() appears to do nothing.

Copy link

@stevethomas stevethomas left a comment

Choose a reason for hiding this comment

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

DiscordMessage::create $embed is unused?

@codyphobe
Copy link
Contributor

Thanks, fixed in v1.0.2.

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.

None yet

3 participants