mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Update to Tokio 1 and Serenity 0.10 (#9)
This commit is contained in:
parent
40f6c6e553
commit
901d55814d
19 changed files with 238 additions and 281 deletions
|
@ -104,7 +104,7 @@ pub async fn choose(ctx: &Context, m: &Message, mut args: Args) -> CommandResult
|
|||
.push_bold(format!("{}", users.len()))
|
||||
.push(" ")
|
||||
.push(
|
||||
role.map(|r| r.mention() + "s")
|
||||
role.map(|r| format!("{}s", r.mention()))
|
||||
.unwrap_or("potential prayers".to_owned()),
|
||||
)
|
||||
.push(", ")
|
||||
|
|
|
@ -195,7 +195,7 @@ pub async fn vote(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
|
|||
.push(
|
||||
votes
|
||||
.into_iter()
|
||||
.map(|v| v.mention())
|
||||
.map(|v| v.mention().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(", "),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue