-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e2fd1f
commit f519378
Showing
4 changed files
with
70 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Message } from "discord.js"; | ||
import BopClient from "../../lib/Client"; | ||
import { Command } from "../../lib/Modules"; | ||
import { Notification } from "../../lib/util/Embeds"; | ||
|
||
export default class extends Command { | ||
public constructor(client: BopClient, directory: string) { | ||
super(client, directory, { | ||
name: "clear", | ||
description: "Leave the voice channel.", | ||
aliases: ["c", "clean", "clearqueue", "cq"], | ||
cooldown: 1, | ||
}); | ||
} | ||
|
||
public async main(message: Message): Promise<void> { | ||
const queue = this.client.player.getQueue(message.guild!); | ||
queue.clear(); | ||
message.channel.send({ embeds: [new Notification("Queue cleared!")] }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters