Lots of tweaks to the osu! embeds (#4)

* Simplify beatmap embed information

* Shrink embeds!!

* Put ranked status on information

* Paint the user embed!

* Add gained pp

* Use more carefully crafted hooks

* 'JSformat' the bpm float
This commit is contained in:
Natsu Kagami 2020-08-10 03:37:11 +00:00 committed by GitHub
parent 6659bdda57
commit c6e8bfc43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 201 additions and 201 deletions

View file

@ -122,11 +122,6 @@ pub fn mania(ctx: &mut Context, msg: &Message, args: Args) -> CommandResult {
pub(crate) struct BeatmapWithMode(pub Beatmap, pub Mode);
impl BeatmapWithMode {
/// Whether this beatmap-with-mode is a converted beatmap.
fn is_converted(&self) -> bool {
self.0.mode != self.1
}
fn mode(&self) -> Mode {
self.1
}