tangled
alpha
login
or
join now
isabelroses.com
/
blahaj
1
fork
atom
silly goober bot
1
fork
atom
overview
issues
pulls
pipelines
style: less confusing names
isabelroses.com
2 years ago
980f9f52
4d406658
+3
-3
1 changed file
expand all
collapse all
unified
split
src
commands
avatar.rs
+3
-3
src/commands/avatar.rs
···
8
ctx: Context<'_>,
9
#[description = "Selected user"] user: Option<serenity::User>,
10
) -> Result<()> {
11
-
let u = user.as_ref().unwrap_or_else(|| ctx.author());
12
-
let av = u.avatar_url().expect("Could not get avatar URL");
13
-
ctx.say(av).await?;
14
Ok(())
15
}
···
8
ctx: Context<'_>,
9
#[description = "Selected user"] user: Option<serenity::User>,
10
) -> Result<()> {
11
+
let user = user.as_ref().unwrap_or_else(|| ctx.author());
12
+
let avatar = user.avatar_url().expect("Could not get avatar URL");
13
+
ctx.say(avatar).await?;
14
Ok(())
15
}