mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 00:08:54 +00:00
Fix osu commands with replies
This commit is contained in:
parent
556ada2b9d
commit
59551f1f6a
1 changed files with 2 additions and 1 deletions
|
@ -400,7 +400,7 @@ pub(crate) async fn load_beatmap(
|
|||
if let Some(replied) = &msg.referenced_message {
|
||||
// Try to look for a mention of the replied message.
|
||||
let beatmap_id = SHORT_LINK_REGEX.captures(&replied.content).or_else(|| {
|
||||
msg.embeds.iter().find_map(|e| {
|
||||
replied.embeds.iter().find_map(|e| {
|
||||
e.description
|
||||
.as_ref()
|
||||
.and_then(|v| SHORT_LINK_REGEX.captures(&v))
|
||||
|
@ -446,6 +446,7 @@ pub(crate) async fn load_beatmap(
|
|||
}
|
||||
|
||||
#[command]
|
||||
#[aliases("map")]
|
||||
#[description = "Show information from the last queried beatmap."]
|
||||
#[usage = "[--set/-s/--beatmapset] / [mods = no mod]"]
|
||||
#[delimiters(" ")]
|
||||
|
|
Loading…
Add table
Reference in a new issue