You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace Discord.API.Rest
|
|
|
|
|
{
|
|
|
|
|
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
|
|
|
|
|
internal class CreateGuildParams
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("name")]
|
|
|
|
|
public string Name { get; }
|
|
|
|
|
[JsonProperty("region")]
|
|
|
|
|
public string RegionId { get; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("icon")]
|
|
|
|
|
public Optional<Image?> Icon { get; set; }
|
|
|
|
|
|
|
|
|
|
public CreateGuildParams(string name, string regionId)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
RegionId = regionId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|