Added Game(name) constructor
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
public string StreamUrl { get; }
|
public string StreamUrl { get; }
|
||||||
public StreamType StreamType { get; }
|
public StreamType StreamType { get; }
|
||||||
|
|
||||||
|
public Game(string name)
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
StreamUrl = null;
|
||||||
|
StreamType = StreamType.NotStreaming;
|
||||||
|
}
|
||||||
public Game(string name, string streamUrl, StreamType type)
|
public Game(string name, string streamUrl, StreamType type)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
|
|||||||
@@ -3,11 +3,6 @@
|
|||||||
"description": "A Discord.Net extension adding voice support.",
|
"description": "A Discord.Net extension adding voice support.",
|
||||||
"authors": [ "RogueException" ],
|
"authors": [ "RogueException" ],
|
||||||
|
|
||||||
"buildOptions": {
|
|
||||||
"allowUnsafe": true,
|
|
||||||
"warningsAsErrors": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"packOptions": {
|
"packOptions": {
|
||||||
"tags": [ "discord", "discordapp" ],
|
"tags": [ "discord", "discordapp" ],
|
||||||
"licenseUrl": "http://opensource.org/licenses/MIT",
|
"licenseUrl": "http://opensource.org/licenses/MIT",
|
||||||
@@ -18,6 +13,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"buildOptions": {
|
||||||
|
"allowUnsafe": true,
|
||||||
|
"warningsAsErrors": false
|
||||||
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"NETStandard.Library": "1.5.0-rc2-24027",
|
"NETStandard.Library": "1.5.0-rc2-24027",
|
||||||
"Newtonsoft.Json": "8.0.3",
|
"Newtonsoft.Json": "8.0.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user