pub async fn create_channel_invite(
client: &Client,
token: &str,
channel_id: &str,
invite_settings: Value,
) -> Result<Value, Box<dyn Error>>
Expand description
Creates a channel invite.
§Arguments
client
- The HTTP client used to send the request.token
- The bot token for authentication.channel_id
- The ID of the channel to create an invite for.invite_settings
- The JSON value of the invite settings.
§Returns
A result containing the created invite as a JSON value.