Alchemy.Cogs.unload

You're seeing just the function unload, go back to Alchemy.Cogs module for more information.

Specs

unload(atom()) :: :ok

Unloads a module from the handler.

If you just want to disable a single command, use Cogs.disable/1

Examples

Client.start(@token)
use Commands2

Turns out we want to stop using Commands2 commands in our bot, so we can simply unload the module:

Cogs.unload(Commands2)

Now none of the commands defined in that module will be accessible. If we want to reverse that, we can merely do:

use Commands2

and reload them back in.