Browse Source

Add incomplete xmldoc to ActivityFlag

Added xmldoc to the ActivityFlag type, excluded flags that i was unsure about
pull/1237/head
Chris Johnston 6 years ago
parent
commit
f40653bcc2
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      src/Discord.Net.Core/Entities/Activities/ActivityFlag.cs

+ 16
- 0
src/Discord.Net.Core/Entities/Activities/ActivityFlag.cs View File

@@ -2,14 +2,30 @@ using System;


namespace Discord namespace Discord
{ {
/// <summary>
/// Flags for the <see cref="IActivity.Flags"/> property, that are ORd together.
/// These describe what the activity payload includes.
/// </summary>
[Flags] [Flags]
public enum ActivityFlag public enum ActivityFlag
{ {
Instance = 1, Instance = 1,
/// <summary>
/// Indicates that this activity can be joined.
/// </summary>
Join = 0b10, Join = 0b10,
/// <summary>
/// Indicates that this activity can be spectated.
/// </summary>
Spectate = 0b100, Spectate = 0b100,
JoinRequest = 0b1000, JoinRequest = 0b1000,
/// <summary>
/// Indicates that a user can listen along in Spotify.
/// </summary>
Sync = 0b10000, Sync = 0b10000,
/// <summary>
/// Indicates that a user can play this song.
/// </summary>
Play = 0b100000 Play = 0b100000
} }
} }

Loading…
Cancel
Save