[Feature] Support for setting custom status (#2749)

This commit is contained in:
Misha133
2023-08-10 15:32:23 +03:00
committed by GitHub
parent b1c832622d
commit b2820d5b65
4 changed files with 45 additions and 1 deletions

View File

@@ -11,6 +11,20 @@ namespace Discord
{
internal CustomStatusGame() { }
/// <summary>
/// Creates a new custom status activity.
/// </summary>
/// <remarks>
/// Bots can't set custom status emoji.
/// </remarks>
/// <param name="state">The string displayed as bot's custom status.</param>
public CustomStatusGame(string state)
{
Name = "Custom Status";
State = state;
Type = ActivityType.CustomStatus;
}
/// <summary>
/// Gets the emote, if it is set.
/// </summary>