26 lines
565 B
C#
26 lines
565 B
C#
using Discord.Commands;
|
|
using Discord.WebSocket;
|
|
using PluginManager.Interfaces;
|
|
|
|
namespace MusicCommands;
|
|
|
|
internal class Pause : DBCommand
|
|
{
|
|
public string Command => "pause";
|
|
|
|
public string Description => "Pause the music";
|
|
|
|
public string Usage => "pause";
|
|
|
|
public bool canUseDM => false;
|
|
|
|
public bool canUseServer => true;
|
|
|
|
public bool requireAdmin => false;
|
|
|
|
public void Execute(SocketCommandContext context, SocketMessage message, DiscordSocketClient client, bool isDM)
|
|
{
|
|
Data.CurrentlyRunning.Paused = true;
|
|
}
|
|
}
|