Browse Source

Added Game(name) constructor

tags/1.0-rc
RogueException 9 years ago
parent
commit
4aba51f2fd
2 changed files with 11 additions and 5 deletions
  1. +6
    -0
      src/Discord.Net/Common/Entities/Users/Game.cs
  2. +5
    -5
      src/Discord.Net/project.json

+ 6
- 0
src/Discord.Net/Common/Entities/Users/Game.cs View File

@@ -6,6 +6,12 @@
public string StreamUrl { get; }
public StreamType StreamType { get; }

public Game(string name)
{
Name = name;
StreamUrl = null;
StreamType = StreamType.NotStreaming;
}
public Game(string name, string streamUrl, StreamType type)
{
Name = name;


+ 5
- 5
src/Discord.Net/project.json View File

@@ -3,11 +3,6 @@
"description": "A Discord.Net extension adding voice support.",
"authors": [ "RogueException" ],

"buildOptions": {
"allowUnsafe": true,
"warningsAsErrors": false
},

"packOptions": {
"tags": [ "discord", "discordapp" ],
"licenseUrl": "http://opensource.org/licenses/MIT",
@@ -18,6 +13,11 @@
}
},

"buildOptions": {
"allowUnsafe": true,
"warningsAsErrors": false
},

"dependencies": {
"NETStandard.Library": "1.5.0-rc2-24027",
"Newtonsoft.Json": "8.0.3",


Loading…
Cancel
Save