using DiscordRPC.Converters; using System; using System.Runtime.Serialization; namespace DiscordRPC.RPC.Payload { /// /// See https://discordapp.com/developers/docs/topics/rpc#rpc-server-payloads-rpc-events for documentation /// internal enum ServerEvent { /// /// Sent when the server is ready to accept messages /// [EnumValue("READY")] Ready, /// /// Sent when something bad has happened /// [EnumValue("ERROR")] Error, /// /// Join Event /// [EnumValue("ACTIVITY_JOIN")] ActivityJoin, /// /// Spectate Event /// [EnumValue("ACTIVITY_SPECTATE")] ActivitySpectate, /// /// Request Event /// [EnumValue("ACTIVITY_JOIN_REQUEST")] ActivityJoinRequest, #if INCLUDE_FULL_RPC //Old things that are obsolete [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("GUILD_STATUS")] GuildStatus, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("GUILD_CREATE")] GuildCreate, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("CHANNEL_CREATE")] ChannelCreate, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("VOICE_CHANNEL_SELECT")] VoiceChannelSelect, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("VOICE_STATE_CREATED")] VoiceStateCreated, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("VOICE_STATE_UPDATED")] VoiceStateUpdated, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("VOICE_STATE_DELETE")] VoiceStateDelete, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("VOICE_SETTINGS_UPDATE")] VoiceSettingsUpdate, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("VOICE_CONNECTION_STATUS")] VoiceConnectionStatus, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("SPEAKING_START")] SpeakingStart, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("SPEAKING_STOP")] SpeakingStop, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("MESSAGE_CREATE")] MessageCreate, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("MESSAGE_UPDATE")] MessageUpdate, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("MESSAGE_DELETE")] MessageDelete, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("NOTIFICATION_CREATE")] NotificationCreate, [Obsolete("This value is appart of the RPC API and is not supported by this library.", true)] [EnumValue("CAPTURE_SHORTCUT_CHANGE")] CaptureShortcutChange #endif } }