2023-09-05 01:21:19 +03:00

130 lines
3.6 KiB
C#

using DiscordRPC.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DiscordRPC.RPC.Payload
{
/// <summary>
/// The possible commands that can be sent and received by the server.
/// </summary>
internal enum Command
{
/// <summary>
/// event dispatch
/// </summary>
[EnumValue("DISPATCH")]
Dispatch,
/// <summary>
/// Called to set the activity
/// </summary>
[EnumValue("SET_ACTIVITY")]
SetActivity,
/// <summary>
/// used to subscribe to an RPC event
/// </summary>
[EnumValue("SUBSCRIBE")]
Subscribe,
/// <summary>
/// used to unsubscribe from an RPC event
/// </summary>
[EnumValue("UNSUBSCRIBE")]
Unsubscribe,
/// <summary>
/// Used to accept join requests.
/// </summary>
[EnumValue("SEND_ACTIVITY_JOIN_INVITE")]
SendActivityJoinInvite,
/// <summary>
/// Used to reject join requests.
/// </summary>
[EnumValue("CLOSE_ACTIVITY_JOIN_REQUEST")]
CloseActivityJoinRequest,
/// <summary>
/// used to authorize a new client with your app
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
Authorize,
/// <summary>
/// used to authenticate an existing client with your app
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
Authenticate,
/// <summary>
/// used to retrieve guild information from the client
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
GetGuild,
/// <summary>
/// used to retrieve a list of guilds from the client
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
GetGuilds,
/// <summary>
/// used to retrieve channel information from the client
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
GetChannel,
/// <summary>
/// used to retrieve a list of channels for a guild from the client
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
GetChannels,
/// <summary>
/// used to change voice settings of users in voice channels
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
SetUserVoiceSettings,
/// <summary>
/// used to join or leave a voice channel, group dm, or dm
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
SelectVoiceChannel,
/// <summary>
/// used to get the current voice channel the client is in
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
GetSelectedVoiceChannel,
/// <summary>
/// used to join or leave a text channel, group dm, or dm
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
SelectTextChannel,
/// <summary>
/// used to retrieve the client's voice settings
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
GetVoiceSettings,
/// <summary>
/// used to set the client's voice settings
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
SetVoiceSettings,
/// <summary>
/// used to capture a keyboard shortcut entered by the user RPC Events
/// </summary>
[Obsolete("This value is appart of the RPC API and is not supported by this library.", true)]
CaptureShortcut
}
}