A class representing the song apis.
More...
#include <SongAPI.hpp>
◆ areWeCurrentlyPlaying()
bool discord_core_api::song_api::areWeCurrentlyPlaying |
( |
| ) |
const |
- Returns
- a bool representing the currently playing status.
Definition at line 103 of file SongAPI.cpp.
◆ onSongCompletion()
◆ pauseToggle()
bool discord_core_api::song_api::pauseToggle |
( |
| ) |
|
- Returns
- a bool suggesting the success or failure of the pauseToggle command.
Definition at line 111 of file SongAPI.cpp.
◆ play() [1/2]
bool discord_core_api::song_api::play |
( |
| ) |
|
- Returns
- a bool suggesting the success or failure of the play command.
Definition at line 107 of file SongAPI.cpp.
◆ play() [2/2]
bool discord_core_api::song_api::play |
( |
song |
songNew | ) |
|
- Parameters
-
- Returns
- a bool suggesting the success or failure of the play command.
Definition at line 86 of file SongAPI.cpp.
◆ searchForSong()
jsonifier::vector< song > discord_core_api::song_api::searchForSong |
( |
jsonifier::string_view |
searchQuery, |
|
|
uint64_t |
limit = 20 |
|
) |
| |
- Parameters
-
searchQuery | the song to search for. |
limit | The maximum number of search results to return. |
- Returns
- a vector of song objects representing the search results.
Definition at line 56 of file SongAPI.cpp.
◆ skip()
bool discord_core_api::song_api::skip |
( |
bool |
wasItAfail = false | ) |
|
- Parameters
-
wasItAfail | a bool representing whether or not this skip is due to a playing failure. |
- Returns
- a bool suggesting the success or failure of the skip command.
Definition at line 48 of file SongAPI.cpp.
◆ stop()
bool discord_core_api::song_api::stop |
( |
| ) |
|
- Returns
- a bool suggesting the success or failure of the stop command.
Definition at line 115 of file SongAPI.cpp.
The documentation for this class was generated from the following files: