Discore
Show / Hide Table of Contents

Method GetChannelInvites

| Improve this Doc View Source

GetChannelInvites(Snowflake)

Gets a list of all invites for the specified guild channel.

Requires ManageChannels.

Declaration
public Task<IReadOnlyList<DiscordInviteMetadata>> GetChannelInvites(Snowflake channelId)
Parameters
Type Name Description
Snowflake channelId
Returns
Type Description
Task<IReadOnlyList<DiscordInviteMetadata>>
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

GetChannelInvites(DiscordGuildChannel)

Gets a list of all invites for the specified guild channel.

Requires ManageChannels.

Declaration
public Task<IReadOnlyList<DiscordInviteMetadata>> GetChannelInvites(DiscordGuildChannel channel)
Parameters
Type Name Description
DiscordGuildChannel channel
Returns
Type Description
Task<IReadOnlyList<DiscordInviteMetadata>>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX