Table of Contents

Enum MessageType

Namespace
DiscordRPC.Message
Assembly
DiscordRPC.dll

Type of message.

public enum MessageType

Fields

Ready = 0

The Discord Client is ready to send and receive messages.

Close = 1

The connection to the Discord Client is lost. The connection will remain close and unready to accept messages until the Ready event is called again.

Error = 2

A error has occured during the transmission of a message. For example, if a bad Rich Presence payload is sent, this event will be called explaining what went wrong.

PresenceUpdate = 3

The Discord Client has updated the presence.

Subscribe = 4

The Discord Client has subscribed to an event.

Unsubscribe = 5

The Discord Client has unsubscribed from an event.

Join = 6

The Discord Client wishes for this process to join a game.

Spectate = 7

The Discord Client wishes for this process to spectate a game.

JoinRequest = 8

Another discord user requests permission to join this game.

ConnectionEstablished = 9

The connection to the discord client was succesfull. This is called before Ready.

ConnectionFailed = 10

Failed to establish any connection with discord. Discord is potentially not running?