Skip to content

Commit e16f351

Browse files
authored
feat: show rank change in profile command (#937)
* feat: show rank change in profile command * fix: compromise on worse arrows for compatibility
1 parent 1771c4b commit e16f351

File tree

24 files changed

+74
-36
lines changed

24 files changed

+74
-36
lines changed

bathbot/src/active/impls/compare/scores.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl IActiveMessage for CompareScoresPagination {
7878
);
7979

8080
let mut embed = EmbedBuilder::new()
81-
.author(self.user.author_builder())
81+
.author(self.user.author_builder(false))
8282
.footer(footer)
8383
.title(title)
8484
.url(format!("{OSU_BASE}b/{}", self.map.map_id()));

bathbot/src/active/impls/most_played.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl IActiveMessage for MostPlayedPagination {
6060
let footer_text = format!("Page {page}/{pages}");
6161

6262
let embed = EmbedBuilder::new()
63-
.author(self.user.author_builder())
63+
.author(self.user.author_builder(false))
6464
.description(description)
6565
.footer(FooterBuilder::new(footer_text))
6666
.thumbnail(self.user.avatar_url.as_ref())

bathbot/src/active/impls/nochoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl IActiveMessage for NoChokePagination {
114114
}
115115

116116
let embed = EmbedBuilder::new()
117-
.author(self.user.author_builder())
117+
.author(self.user.author_builder(false))
118118
.description(description)
119119
.footer(FooterBuilder::new(footer_text))
120120
.thumbnail(self.user.avatar_url.as_ref())

bathbot/src/active/impls/osustats/scores.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl OsuStatsScoresPagination {
155155

156156
if self.entries.is_empty() {
157157
let embed = EmbedBuilder::new()
158-
.author(self.user.author_builder())
158+
.author(self.user.author_builder(false))
159159
.description("No scores with these parameters were found")
160160
.footer(FooterBuilder::new("Page 1/1 • Total scores: 0"))
161161
.thumbnail(self.user.avatar_url.as_ref());
@@ -207,7 +207,7 @@ impl OsuStatsScoresPagination {
207207
));
208208

209209
let embed = EmbedBuilder::new()
210-
.author(self.user.author_builder())
210+
.author(self.user.author_builder(false))
211211
.description(description)
212212
.footer(footer)
213213
.thumbnail(self.user.avatar_url.as_ref());

bathbot/src/active/impls/profile/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl ProfileMenu {
258258
}
259259

260260
let embed = EmbedBuilder::new()
261-
.author(self.user.author_builder())
261+
.author(self.user.author_builder(true))
262262
.description(description)
263263
.footer(self.footer())
264264
.thumbnail(self.user.avatar_url.as_ref());
@@ -456,7 +456,7 @@ impl ProfileMenu {
456456
];
457457

458458
let embed = EmbedBuilder::new()
459-
.author(self.user.author_builder())
459+
.author(self.user.author_builder(true))
460460
.description(description)
461461
.fields(fields)
462462
.footer(self.footer())
@@ -641,7 +641,7 @@ impl ProfileMenu {
641641
};
642642

643643
let embed = EmbedBuilder::new()
644-
.author(self.user.author_builder())
644+
.author(self.user.author_builder(true))
645645
.description(description)
646646
.thumbnail(self.user.avatar_url.as_ref());
647647

@@ -743,7 +743,7 @@ impl ProfileMenu {
743743
};
744744

745745
let embed = EmbedBuilder::new()
746-
.author(self.user.author_builder())
746+
.author(self.user.author_builder(true))
747747
.description(description)
748748
.fields(fields)
749749
.thumbnail(self.user.avatar_url.as_ref());
@@ -812,7 +812,7 @@ impl ProfileMenu {
812812
}
813813

814814
let embed = EmbedBuilder::new()
815-
.author(self.user.author_builder())
815+
.author(self.user.author_builder(true))
816816
.description(description)
817817
.thumbnail(self.user.avatar_url.as_ref());
818818

@@ -877,7 +877,7 @@ impl ProfileMenu {
877877
}
878878

879879
let embed = EmbedBuilder::new()
880-
.author(self.user.author_builder())
880+
.author(self.user.author_builder(true))
881881
.description(description)
882882
.fields(fields)
883883
.thumbnail(self.user.avatar_url.as_ref());

bathbot/src/active/impls/recent_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl IActiveMessage for RecentListPagination {
9898
}
9999

100100
let embed = EmbedBuilder::new()
101-
.author(self.user.author_builder())
101+
.author(self.user.author_builder(false))
102102
.description(description)
103103
.footer(FooterBuilder::new(footer_text))
104104
.thumbnail(self.user.avatar_url.as_ref())

bathbot/src/active/impls/single_score.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl SingleScorePagination {
8484
score_data,
8585
msg_owner,
8686
pages,
87-
author: user.author_builder(),
87+
author: user.author_builder(false),
8888
content,
8989
}
9090
}

bathbot/src/active/impls/snipe/difference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl SnipeDifferencePagination {
167167
));
168168

169169
let embed = EmbedBuilder::new()
170-
.author(self.user.author_builder())
170+
.author(self.user.author_builder(false))
171171
.description(description)
172172
.footer(footer)
173173
.thumbnail(self.user.avatar_url.as_ref())

bathbot/src/active/impls/snipe/player_list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl SnipePlayerListPagination {
127127

128128
if self.scores.is_empty() {
129129
let embed = EmbedBuilder::new()
130-
.author(self.user.author_builder())
130+
.author(self.user.author_builder(false))
131131
.description("No scores were found")
132132
.footer(FooterBuilder::new("Page 1/1 • Total #1 scores: 0"))
133133
.thumbnail(self.user.avatar_url.as_ref());
@@ -187,7 +187,7 @@ impl SnipePlayerListPagination {
187187
));
188188

189189
let embed = EmbedBuilder::new()
190-
.author(self.user.author_builder())
190+
.author(self.user.author_builder(false))
191191
.description(description)
192192
.footer(footer)
193193
.thumbnail(self.user.avatar_url.as_ref());

bathbot/src/active/impls/top.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl TopPagination {
8080
);
8181

8282
let embed = EmbedBuilder::new()
83-
.author(self.user.author_builder())
83+
.author(self.user.author_builder(false))
8484
.description(description)
8585
.footer(FooterBuilder::new(footer_text))
8686
.thumbnail(self.user.avatar_url.as_ref());
@@ -238,7 +238,7 @@ impl TopPagination {
238238
);
239239

240240
let embed = EmbedBuilder::new()
241-
.author(self.user.author_builder())
241+
.author(self.user.author_builder(false))
242242
.description(description)
243243
.footer(FooterBuilder::new(footer_text))
244244
.thumbnail(self.user.avatar_url.as_ref());

0 commit comments

Comments
 (0)