Files
faumaray d146f11f02 Release 1.0.0
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-04 01:49:28 +03:00

33 lines
679 B
C++

#pragma once
#include "SearchCommand.hpp"
namespace Echoion::Core
{
// !youtube / !yb — search YouTube only.
class YoutubeSearchCommand : public SearchCommandBase
{
public:
std::string_view getDescription() const override
{
return "Search YouTube only for tracks.";
}
std::string_view getUsage() const override { return "<query>"; }
std::vector<std::string_view> getAliases() const override
{
return {"yb", "yt"};
}
protected:
MusicManager::SearchScope scope() const override
{
return MusicManager::SearchScope::YouTube;
}
std::string_view label() const override { return "youtube"; }
};
} // namespace Echoion::Core