Table of Contents

Method CreateChannelInviteAsync

Namespace
DSharpPlus.Net
Assembly
DSharpPlus.dll

CreateChannelInviteAsync(ulong, int, int, bool, bool, string, DiscordInviteTargetType?, ulong?, ulong?)

public ValueTask<DiscordInvite> CreateChannelInviteAsync(ulong channelId, int maxAge, int maxUses, bool temporary, bool unique, string reason, DiscordInviteTargetType? targetType = null, ulong? targetUserId = null, ulong? targetApplicationId = null)

Parameters

channelId ulong
maxAge int
maxUses int
temporary bool
unique bool
reason string
targetType DiscordInviteTargetType?
targetUserId ulong?
targetApplicationId ulong?

Returns

ValueTask<DiscordInvite>