Made API models internal. Removed Discord.Net.API.
This commit is contained in:
21
src/Discord.Net.Rest/API/Image.cs
Normal file
21
src/Discord.Net.Rest/API/Image.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.IO;
|
||||
|
||||
namespace Discord.API
|
||||
{
|
||||
internal struct Image
|
||||
{
|
||||
public Stream Stream { get; }
|
||||
public string Hash { get; }
|
||||
|
||||
public Image(Stream stream)
|
||||
{
|
||||
Stream = stream;
|
||||
Hash = null;
|
||||
}
|
||||
public Image(string hash)
|
||||
{
|
||||
Stream = null;
|
||||
Hash = hash;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user