33 lines
701 B
C++
33 lines
701 B
C++
#pragma once
|
|
|
|
#include "SearchCommand.hpp"
|
|
|
|
namespace Echoion::Core
|
|
{
|
|
|
|
// !soundcloud / !sc — search SoundCloud only.
|
|
class SoundCloudSearchCommand : public SearchCommandBase
|
|
{
|
|
public:
|
|
|
|
std::string_view getDescription() const override
|
|
{
|
|
return "Search SoundCloud only for tracks.";
|
|
}
|
|
std::string_view getUsage() const override { return "<query>"; }
|
|
std::vector<std::string_view> getAliases() const override
|
|
{
|
|
return {"sc", "scloud"};
|
|
}
|
|
|
|
protected:
|
|
|
|
MusicManager::SearchScope scope() const override
|
|
{
|
|
return MusicManager::SearchScope::SoundCloud;
|
|
}
|
|
std::string_view label() const override { return "soundcloud"; }
|
|
};
|
|
|
|
} // namespace Echoion::Core
|