[Feature] Thread user member & thread members pagination (#2580)

* initial commit

* return & update old method

* mark old method as obsolete
This commit is contained in:
Misha133
2023-02-09 14:37:26 +03:00
committed by GitHub
parent 75f3c91f9a
commit b085621ca6
9 changed files with 96 additions and 23 deletions

View File

@@ -214,5 +214,13 @@ namespace Discord
/// If set to <see langword="false"/>, this value will be "Discord#1234".
/// </remarks>
public bool FormatUsersInBidirectionalUnicode { get; set; } = true;
/// <summary>
/// Returns the max thread members allowed to be in a request.
/// </summary>
/// <returns>
/// The maximum number of thread members that can be gotten per-batch.
/// </returns>
public const int MaxThreadMembersPerBatch = 100;
}
}

View File

@@ -21,5 +21,10 @@ namespace Discord
/// Gets the guild this thread was created in.
/// </summary>
IGuild Guild { get; }
/// <summary>
/// Gets the <see cref="IGuildUser"/> on the server this thread was created in.
/// </summary>
IGuildUser GuildUser { get; }
}
}