/// <summary> /// Creates an invite for a channel /// </summary> /// <param name="channelId">ID of the channel</param> /// <param name="properties">Options for creating the invite</param> /// <returns>The created invite</returns> public static DiscordInvite CreateInvite(this DiscordClient client, ulong channelId, InviteProperties properties = null) { return(client.CreateInviteAsync(channelId, properties).GetAwaiter().GetResult()); }