Add bearer auth for message sending

This commit is contained in:
bitfl0wer 2023-05-03 23:13:12 +02:00
parent ab17d864ba
commit dcee25a2a2
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ pub mod messages {
"{}/channels/{}/messages", "{}/channels/{}/messages",
url_api, message.channel_id url_api, message.channel_id
)) ))
.body(to_string(message).unwrap()); .body(to_string(message).unwrap())
.bearer_auth(token);
if files.is_some() {} if files.is_some() {}
match requester match requester
.send_request( .send_request(