Alchemy.Cogs.group
You're seeing just the macro
group
, go back to Alchemy.Cogs module for more information.
Makes all commands in this module sub commands of a group.
Examples
defmodule C do
use Alchemy.Cogs
Cogs.group("cool")
Cogs.def foo, do: Cogs.say "foo"
end
To use this foo command, one has to type !cool foo
, from there on
arguments will be passed like normal.
The relevant parsing will be done in the command task, as if there
were a command !cool
that redirected to subfunctions. Because of this,
Cogs.disable/1
will not be able to disable the subcommands, however,
Cogs.unload/1
still works as expected. Reloading a grouped module
will also disable removed commands, unlike with ungrouped modules.