unloadExtension

open suspend fun unloadExtension(extension: String)

Unload an installed Extension from this bot, by name.

This function does not remove the extension object - it simply removes its event handlers and commands. Unloaded extensions can be loaded again by calling loadExtension.

This function simply returns if the extension isn't found.

Parameters

extension

The name of the Extension to unload.