Function serenity::client::rest::create_invite [] [src]

pub fn create_invite(channel_id: u64, map: Value) -> Result<RichInvite>

Creates a RichInvite for the given channel.

Refer to Discord's docs for field information.

All fields are optional.

Note: Requires the Create Invite permission.