Closed anna-is-cute closed 7 years ago
When using Discord::get_message, no matter what channel and message are passed to the function, the same error is always given:
Discord::get_message
Json( ErrorImpl { code: Message( "missing field `nonce`" ), line: 1, column: 680 } )
Seems like the best way to fix this would be to add #[serde(default)] to the nonce field.
#[serde(default)]
nonce
Edit: Can confirm that adding #[serde(default)] fixes this.
When using
Discord::get_message
, no matter what channel and message are passed to the function, the same error is always given:Seems like the best way to fix this would be to add
#[serde(default)]
to thenonce
field.Edit: Can confirm that adding
#[serde(default)]
fixes this.