Removed Height/Width.
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Discord
|
|||||||
|
|
||||||
public EmbedBuilder()
|
public EmbedBuilder()
|
||||||
{
|
{
|
||||||
_model = new Embed {Type = "rich"};
|
_model = new Embed { Type = "rich" };
|
||||||
_fields = new List<Field>();
|
_fields = new List<Field>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,8 +213,6 @@ namespace Discord
|
|||||||
private Thumbnail _model;
|
private Thumbnail _model;
|
||||||
|
|
||||||
public string Url { get { return _model.Url; } set { _model.Url = value; } }
|
public string Url { get { return _model.Url; } set { _model.Url = value; } }
|
||||||
public Optional<int> Height { get { return _model.Height; } set { _model.Height = value; } }
|
|
||||||
public Optional<int> Width { get { return _model.Width; } set { _model.Width = value; } }
|
|
||||||
|
|
||||||
public EmbedThumbnailBuilder()
|
public EmbedThumbnailBuilder()
|
||||||
{
|
{
|
||||||
@@ -226,16 +224,6 @@ namespace Discord
|
|||||||
Url = url;
|
Url = url;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public EmbedThumbnailBuilder WithHeight(int height)
|
|
||||||
{
|
|
||||||
Height = height;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
public EmbedThumbnailBuilder WithWidth(int width)
|
|
||||||
{
|
|
||||||
Width = width;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal Thumbnail ToModel() => _model;
|
internal Thumbnail ToModel() => _model;
|
||||||
}
|
}
|
||||||
@@ -245,8 +233,6 @@ namespace Discord
|
|||||||
private Image _model;
|
private Image _model;
|
||||||
|
|
||||||
public string Url { get { return _model.Url; } set { _model.Url = value; } }
|
public string Url { get { return _model.Url; } set { _model.Url = value; } }
|
||||||
public Optional<int> Height { get { return _model.Height; } set { _model.Height = value; } }
|
|
||||||
public Optional<int> Width { get { return _model.Width; } set { _model.Width = value; } }
|
|
||||||
|
|
||||||
public EmbedImageBuilder()
|
public EmbedImageBuilder()
|
||||||
{
|
{
|
||||||
@@ -258,16 +244,6 @@ namespace Discord
|
|||||||
Url = url;
|
Url = url;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public EmbedImageBuilder WithHeight(int height)
|
|
||||||
{
|
|
||||||
Height = height;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
public EmbedImageBuilder WithWidth(int width)
|
|
||||||
{
|
|
||||||
Width = width;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal Image ToModel() => _model;
|
internal Image ToModel() => _model;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user