-
-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ResolvedUnfurledMediaItem
+ fix missing accessory on sections
- Loading branch information
Showing
6 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/Discord.Net.Core/Entities/Interactions/MessageComponents/ResolvedUnfurledMediaItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace Discord; | ||
|
||
public class ResolvedUnfurledMediaItem : UnfurledMediaItem | ||
{ | ||
public string ProxyUrl { get; } | ||
|
||
public int Height { get; } | ||
|
||
public int Width { get; } | ||
|
||
public string ContentType { get;} | ||
|
||
public UnfurledMediaItemLoadingState LoadingState { get; } | ||
|
||
internal ResolvedUnfurledMediaItem(string url, string proxyUrl, int height, int width, string contentType, UnfurledMediaItemLoadingState loadingState) : base(url) | ||
{ | ||
ProxyUrl = proxyUrl; | ||
Height = height; | ||
Width = width; | ||
ContentType = contentType; | ||
LoadingState = loadingState; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/Discord.Net.Core/Entities/Interactions/MessageComponents/UnfurledMediaItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...Discord.Net.Core/Entities/Interactions/MessageComponents/UnfurledMediaItemLoadingState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Discord; | ||
|
||
public enum UnfurledMediaItemLoadingState | ||
{ | ||
/// <summary> | ||
/// The state of the media item is unknown. | ||
/// </summary> | ||
Unknown = 0, | ||
|
||
/// <summary> | ||
/// The media item is currently loading. | ||
/// </summary> | ||
Loading = 1, | ||
|
||
/// <summary> | ||
/// The media item was successfully loaded. | ||
/// </summary> | ||
LoadingSuccess = 2, | ||
|
||
/// <summary> | ||
/// The media item was not found. | ||
/// </summary> | ||
LoadingNotFound = 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters