Add project files.
This commit is contained in:
1 parent
ce106b5314
commit
a370f4ad1c
56 files changed
+2596
No files matched your search
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.data = exports.run = void 0;
|
||||
const config_1 = require("../config");
|
||||
const discord_js_1 = require("discord.js");
|
||||
async function run(client, ctx) {
|
||||
if (ctx.guildId === null)
|
||||
return;
|
||||
const player = client.players.getPlayer(ctx.guildId);
|
||||
if (player) {
|
||||
const state = player.pause();
|
||||
const embed = new discord_js_1.MessageEmbed()
|
||||
.setColor(config_1.design.color)
|
||||
.setTitle(`Pause is now ${state ? "on" : "off"}.`);
|
||||
try {
|
||||
await ctx.reply({ embeds: [embed] });
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
exports.run = run;
|
||||
const data = {
|
||||
name: "pause",
|
||||
description: "Toggle pause.",
|
||||
};
|
||||
exports.data = data;
|
||||
//# sourceMappingURL=pause.js.map
|
||||
Reference in new issue
Block a user