Class StreamingGame
A user's activity for streaming on services such as Twitch.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class StreamingGame : Game, IActivity
Constructors
| Improve this Doc View SourceStreamingGame(String, String)
Creates a new StreamingGame based on the name on the stream URL.
Declaration
public StreamingGame(string name, string url)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the stream. |
| System.String | url | The URL of the stream. |
Properties
| Improve this Doc View SourceUrl
Gets the URL of the stream.
Declaration
public string Url { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceToString()
Gets the name of the stream.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |