add set_id() to FileAttachment
This is so that the id of the Attachment to be sent can just be overwritten by the send() method.
This commit is contained in:
parent
7984c5d19f
commit
6953dbb326
|
@ -927,6 +927,10 @@ impl PartialDiscordFileAttachment {
|
|||
};
|
||||
(content_type, updated_struct)
|
||||
}
|
||||
|
||||
pub fn set_id(&mut self, id: i16) {
|
||||
self.id = Some(id);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
|
|
Loading…
Reference in New Issue