Skip to content

Commit

Permalink
model/guild_channel: revert 'say' taking self
Browse files Browse the repository at this point in the history
Revert the 'say' method in the impl of 'guildchannel' from taking self.
This was accidentally done in a Clippy lint PR[1].

This is a breaking change, but is a bugfix, so a patch increase is fine.

[1]: #579

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
  • Loading branch information
zeylahellyer committed Jun 24, 2019
1 parent 3a72058 commit 55e7c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/channel/guild_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl GuildChannel {
/// [`ModelError::MessageTooLong`]: ../error/enum.Error.html#variant.MessageTooLong
#[cfg(feature = "http")]
#[inline]
pub fn say(self, http: impl AsRef<Http>, content: impl std::fmt::Display) -> Result<Message> { self.id.say(&http, content) }
pub fn say(&self, http: impl AsRef<Http>, content: impl std::fmt::Display) -> Result<Message> { self.id.say(&http, content) }

/// Sends (a) file(s) along with optional message contents.
///
Expand Down

0 comments on commit 55e7c86

Please sign in to comment.