From 813f8b37fecd2f4aa99a1c243b0ead7a5000de0f Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Sun, 27 Jan 2019 00:11:57 -0800 Subject: [PATCH] Expose the details field in the Game model --- src/Discord.Net.Core/Entities/Activities/Game.cs | 6 +++++- src/Discord.Net.Core/Entities/Activities/IActivity.cs | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/Activities/Game.cs b/src/Discord.Net.Core/Entities/Activities/Game.cs index 5943682e0..8891e142c 100644 --- a/src/Discord.Net.Core/Entities/Activities/Game.cs +++ b/src/Discord.Net.Core/Entities/Activities/Game.cs @@ -14,6 +14,8 @@ namespace Discord public ActivityType Type { get; internal set; } /// public ActivityProperties Flags { get; internal set; } + /// + public string Details { get; internal set; } internal Game() { } /// @@ -21,10 +23,12 @@ namespace Discord /// /// The name of the game. /// The type of activity. - public Game(string name, ActivityType type = ActivityType.Playing) + public Game(string name, ActivityType type = ActivityType.Playing, ActivityProperties flags = ActivityProperties.None, string details = null) { Name = name; Type = type; + Flags = flags; + Details = details; } /// Returns the name of the . diff --git a/src/Discord.Net.Core/Entities/Activities/IActivity.cs b/src/Discord.Net.Core/Entities/Activities/IActivity.cs index def7687cc..96704b826 100644 --- a/src/Discord.Net.Core/Entities/Activities/IActivity.cs +++ b/src/Discord.Net.Core/Entities/Activities/IActivity.cs @@ -29,5 +29,12 @@ namespace Discord /// The value of flags for this activity. /// ActivityProperties Flags { get; } + /// + /// Gets the details on what the player is currently doing. + /// + /// + /// A string describing what the player is doing. + /// + string Details { get; } } }