Alchemy.Events.on_channel_create
You're seeing just the macro
on_channel_create
, go back to Alchemy.Events module for more information.
Registers a handle triggering whenever a channel gets created.
args
: Alchemy.Channel.t
As opposed to on_DMChannel_create
, this gets triggered when a channel gets
created in a guild, and not when a user starts a DM with this client.
Examples
Events.on_channel_create(:foo)
def foo(channel), do: IO.inspect channel.name