[Fix] GetEventCoverImageUrl throwing NRE in case event cover image is null (#2818)

* return null instead of throwing NRE

* fix xmldoc
This commit is contained in:
Mihail Gribkov
2024-01-11 22:29:07 +03:00
committed by GitHub
parent e2e8c0fd6a
commit 138e18cb7a
3 changed files with 6 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ namespace Discord.Rest
/// <inheritdoc/>
public string GetCoverImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 1024)
=> CDN.GetEventCoverImageUrl(Guild.Id, Id, CoverImageId, format, size);
=> CDN.GetEventCoverImageUrl(GuildId, Id, CoverImageId, format, size);
/// <inheritdoc/>
public Task StartAsync(RequestOptions options = null)