📝 Add example for skip command
This commit is contained in:
parent
7fa041bb22
commit
4e55e66b3d
1 changed files with 13 additions and 0 deletions
|
@ -303,6 +303,19 @@ class Player {
|
||||||
* Skip a track
|
* Skip a track
|
||||||
* @param {Discord.Snowflake} guildID The ID of the guild where the track should be skipped
|
* @param {Discord.Snowflake} guildID The ID of the guild where the track should be skipped
|
||||||
* @returns {Promise<Track>}
|
* @returns {Promise<Track>}
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* client.on('message', async (message) => {
|
||||||
|
*
|
||||||
|
* const args = message.content.slice(settings.prefix.length).trim().split(/ +/g);
|
||||||
|
* const command = args.shift().toLowerCase();
|
||||||
|
*
|
||||||
|
* if(command === 'skip'){
|
||||||
|
* let track = await client.player.skip(message.guild.id);
|
||||||
|
* message.channel.send(`${track.name} skipped!`);
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* });
|
||||||
*/
|
*/
|
||||||
skip (guildID) {
|
skip (guildID) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in a new issue