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
ulongmaxAge
intmaxUses
inttemporary
boolunique
boolreason
stringtargetType
DiscordInviteTargetType?targetUserId
ulong?targetApplicationId
ulong?
Returns
- ValueTask<DiscordInvite>