[Feature] Add missing property & new stuff (#2521)

* add active developer badge support

* add `OwnerId` to threads

* add default forum layout support

* oops, forgot to update modifyasync

* add missing application flags

* Add `50155` error code
This commit is contained in:
Misha133
2022-12-14 09:57:06 +03:00
committed by GitHub
parent bd2f719774
commit 82b772ac03
14 changed files with 95 additions and 17 deletions

View File

@@ -45,6 +45,9 @@ namespace Discord.WebSocket
/// <inheritdoc/>
public ForumSortOrder? DefaultSortOrder { get; private set; }
/// <inheritdoc />
public ForumLayout DefaultLayout { get; private set; }
/// <summary>
/// Gets the parent (category) of this channel in the guild's channel list.
/// </summary>
@@ -93,6 +96,8 @@ namespace Discord.WebSocket
}
CategoryId = model.CategoryId.GetValueOrDefault();
DefaultLayout = model.DefaultForumLayout.GetValueOrDefault();
}
/// <inheritdoc />

View File

@@ -95,6 +95,9 @@ namespace Discord.WebSocket
/// <inheritdoc cref="IThreadChannel.CreatedAt"/>
public override DateTimeOffset CreatedAt { get; }
/// <inheritdoc cref="IThreadChannel.OwnerId"/>
ulong IThreadChannel.OwnerId => _ownerId;
/// <summary>
/// Gets a collection of cached users within this thread.
/// </summary>