Alchemy.Client.get_channel_invites
You're seeing just the function
get_channel_invites
, go back to Alchemy.Client module for more information.
Link to this function
get_channel_invites(channel_id)
Specs
get_channel_invites(snowflake()) :: {:ok, [Alchemy.Channel.invite()]} | {:error, term()}
Gets a list of invites for a channel.
Only usable for guild channels.
Examples
Cogs.def count_invites do
{:ok, invites} = Client.get_channel_invites(message.channel_id)
Cogs.say("there are #{length(invites)} invites active in this channel")
end