Browse Source

Removed Height/Width.

tags/1.0-rc
Sindre G. Langhus 8 years ago
parent
commit
6cdf5ee90e
1 changed files with 1 additions and 25 deletions
  1. +1
    -25
      src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs

+ 1
- 25
src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs View File

@@ -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;
} }


Loading…
Cancel
Save