using System;
using System.Threading.Tasks;
namespace Discord.Rest
{
public static class ClientExtensions
{
///
/// Adds a user to the specified guild.
///
///
/// 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.
///
/// The Discord client object.
/// The snowflake identifier of the guild.
/// The snowflake identifier of the user.
/// The OAuth2 access token for the user, requested with the guilds.join scope.
/// The delegate containing the properties to be applied to the user upon being added to the guild.
/// The options to be used when sending the request.
public static Task AddGuildUserAsync(this BaseDiscordClient client, ulong guildId, ulong userId, string accessToken, Action func = null, RequestOptions options = null)
=> GuildHelper.AddGuildUserAsync(guildId, client, userId, accessToken, func, options);
}
}