poise 0.4 -> 0.5.5
This commit is contained in:
parent
e370b29f86
commit
faf74e7c3f
6 changed files with 16 additions and 16 deletions
|
@ -175,7 +175,7 @@ pub async fn send(ctx: Context<'_>, message: &str, ping: bool, pin: bool) -> Res
|
|||
));
|
||||
}
|
||||
message_to_send.push_str(message);
|
||||
let ctx = ctx.discord();
|
||||
let ctx = ctx.serenity_context();
|
||||
let sent_message = channel
|
||||
.send_message(&ctx.http, |e| {
|
||||
e.content(message_to_send);
|
||||
|
@ -224,7 +224,7 @@ pub async fn display_kanji(ctx: Context<'_>, kanji: char, comment: &str) -> Resu
|
|||
let link_validated = response != reqwest::StatusCode::NOT_FOUND;
|
||||
ctx.channel_id()
|
||||
.say(
|
||||
&ctx.discord().http,
|
||||
&ctx.serenity_context().http,
|
||||
if link_validated {
|
||||
&url
|
||||
} else {
|
||||
|
@ -373,7 +373,7 @@ pub async fn leaderboard(ctx: &Context<'_>) -> Result<(), Error> {
|
|||
for (i, (id, count)) in top_submitters[0..LENGTH].iter().enumerate() {
|
||||
let place = i + 1;
|
||||
let user = serenity::UserId(id.parse::<u64>().unwrap())
|
||||
.to_user(&ctx.discord().http)
|
||||
.to_user(&ctx.serenity_context().http)
|
||||
.await?;
|
||||
let avatar = get_avatar(&user);
|
||||
let profile = format!("https://discord.com/users/{id}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue