|
|
@@ -586,11 +586,11 @@ namespace Discord |
|
|
|
/// <remarks> |
|
|
|
/// This method requires you have an OAuth2 access token for the user, requested with the guilds.join scope, and that the bot have the MANAGE_INVITES permission in the guild. |
|
|
|
/// </remarks> |
|
|
|
/// <param name="id">The snowflake identifier of the user.</param> |
|
|
|
/// <param name="userId">The snowflake identifier of the user.</param> |
|
|
|
/// <param name="accessToken">The OAuth2 access token for the user, requested with the guilds.join scope.</param> |
|
|
|
/// <param name="func">The delegate containing the properties to be applied to the user upon being added to the guild.</param> |
|
|
|
/// <param name="options">The options to be used when sending the request.</param> |
|
|
|
/// <returns>A guild user associated with the specified <paramref name="id" />; <c>null</c> if the user is already in the guild.</returns> |
|
|
|
/// <returns>A guild user associated with the specified <paramref name="userId" />; <c>null</c> if the user is already in the guild.</returns> |
|
|
|
Task<IGuildUser> AddGuildUserAsync(ulong userId, string accessToken, Action<AddGuildUserProperties> func = null, RequestOptions options = null); |
|
|
|
/// <summary> |
|
|
|
/// Gets a collection of all users in this guild. |
|
|
|