Skip to content

Commit

Permalink
Remove sending message nonces
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyla Hellyer committed Feb 27, 2017
1 parent aaf4f2e commit 9c04a19
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/model/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,6 @@ impl Message {

let map = ObjectBuilder::new()
.insert("content", gen)
.insert("nonce", "")
.insert("tts", false)
.build();

Expand Down
1 change: 0 additions & 1 deletion src/model/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ impl User {

let map = ObjectBuilder::new()
.insert("content", content)
.insert("nonce", "")
.insert("tts", false)
.build();

Expand Down
10 changes: 0 additions & 10 deletions src/utils/builder/create_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ impl CreateMessage {
CreateMessage(self.0)
}

/// Set the nonce. This is used for validation of a sent message. You most
/// likely don't need to worry about this.
///
/// Defaults to empty.
pub fn nonce(mut self, nonce: &str) -> Self {
self.0.insert("nonce".to_owned(), Value::String(nonce.to_owned()));

CreateMessage(self.0)
}

/// Set whether the message is text-to-speech.
///
/// Think carefully before setting this to `true`.
Expand Down

0 comments on commit 9c04a19

Please sign in to comment.