add_guild_member

Function add_guild_member 

Source
pub async fn add_guild_member(
    client: &Client,
    token: &str,
    guild_id: &str,
    user_id: &str,
    member_settings: Value,
) -> Result<Value, Box<dyn Error>>
Expand description

Adds a member to a Discord guild.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.
  • guild_id - The ID of the guild.
  • user_id - The ID of the user to add.
  • member_settings - The JSON value of the member settings.

§Returns

A result containing the added member information as a JSON value.