[Feature] Member search v2 (#2931)

* initial commit

* tweak some things

* a

* Update JoinSourceType.cs

* ill just hope it works

* yup

* docz
This commit is contained in:
Mihail Gribkov
2024-07-20 23:37:22 +03:00
committed by GitHub
parent 24c760586b
commit e18915ac96
12 changed files with 639 additions and 0 deletions

View File

@@ -1336,6 +1336,10 @@ namespace Discord.WebSocket
/// </returns>
public Task<IReadOnlyCollection<RestGuildUser>> SearchUsersAsync(string query, int limit = DiscordConfig.MaxUsersPerBatch, RequestOptions options = null)
=> GuildHelper.SearchUsersAsync(this, Discord, query, limit, options);
/// <inheritdoc />
public Task<MemberSearchResult> SearchUsersAsyncV2(int limit = DiscordConfig.MaxUsersPerBatch, MemberSearchPropertiesV2 args = null, RequestOptions options = null)
=> GuildHelper.SearchUsersAsyncV2(this, Discord, limit, args, options);
#endregion
#region Guild Events