forked from sorceress/rustcord
Totally didn't reuse old code
This commit is contained in:
parent
e3fe5e2b59
commit
9887e8ef45
|
@ -669,7 +669,6 @@ fn pinned(ctx: &mut Context, message: &Message, mut args: Args) -> CommandResult
|
||||||
.description(&pinned[idx].content)
|
.description(&pinned[idx].content)
|
||||||
.timestamp(&pinned[idx].timestamp);
|
.timestamp(&pinned[idx].timestamp);
|
||||||
e.author(|a| {
|
e.author(|a| {
|
||||||
//assuming first array element is name and second is icon url
|
|
||||||
a.name(&pinned[idx].author.name)
|
a.name(&pinned[idx].author.name)
|
||||||
.icon_url(&pinned[idx].author.avatar_url().unwrap())
|
.icon_url(&pinned[idx].author.avatar_url().unwrap())
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue