Allow setting custom status with SetGameAsync (#2858)
This commit is contained in:
@@ -721,7 +721,12 @@ namespace Discord.WebSocket
|
|||||||
if (!string.IsNullOrEmpty(streamUrl))
|
if (!string.IsNullOrEmpty(streamUrl))
|
||||||
Activity = new StreamingGame(name, streamUrl);
|
Activity = new StreamingGame(name, streamUrl);
|
||||||
else if (!string.IsNullOrEmpty(name))
|
else if (!string.IsNullOrEmpty(name))
|
||||||
Activity = new Game(name, type);
|
{
|
||||||
|
if (type is ActivityType.CustomStatus)
|
||||||
|
Activity = new CustomStatusGame(name);
|
||||||
|
else
|
||||||
|
Activity = new Game(name, type);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
Activity = null;
|
Activity = null;
|
||||||
return SendStatusAsync();
|
return SendStatusAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user