Add bearer auth for message sending
This commit is contained in:
parent
ab17d864ba
commit
dcee25a2a2
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue