Fix play
This commit is contained in:
parent
a0b2cb062d
commit
b69ffe0a0c
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class PlayCommand extends MusicCommand {
|
||||||
const url = new URL(query);
|
const url = new URL(query);
|
||||||
return await play(this.client, url, this.message, true);
|
return await play(this.client, url, this.message, true);
|
||||||
} catch {
|
} catch {
|
||||||
const search = searchRegex.startsWith("ytsearch:") ? query : !this.args[0] && attachment ? attachment.url : `ytsearch:${query}`;
|
const search = query.startsWith("ytsearch:") ? query : !this.args[0] && attachment ? attachment.url : `ytsearch:${query}`;
|
||||||
return await play(this.client, search, this.message, true);
|
return await play(this.client, search, this.message, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue