Fix search command always showing non-premium account warning message

This commit is contained in:
bytedream 2024-02-23 21:41:47 +01:00
parent 5634ce3277
commit 52da6eacc9
3 changed files with 68 additions and 8 deletions

View file

@ -103,7 +103,7 @@ pub struct Search {
impl Execute for Search {
async fn execute(self, ctx: Context) -> Result<()> {
if !ctx.crunchy.premium() {
if !ctx.crunchy.premium().await {
warn!("Using `search` anonymously or with a non-premium account may return incomplete results")
}