Behaviours: gen_server
.
code_change/3 | |
edit_message/4 | Edit an existing message in a Discord channel. |
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | Handle connection initiation. |
init/1 | Initialize the gen_server with token and command handler. |
send_message/3 | Send a message to a Discord channel. |
start_link/1 | Start the Discord bot client with just a token (no command handler). |
start_link/2 | Start the Discord bot client with token and options Options can include: - {command_handler, Module} - Module implementing handle_message/4 - {command_handler, {Module, Function}} - MFA style handler - {command_handler, Fun} - Function with arity 4. |
terminate/2 |
code_change(OldVsn, State, Extra) -> any()
edit_message(ChannelId::binary(), MessageId::binary(), Content::binary(), Token::binary()) -> {ok, integer(), binary()} | {error, term()}
Edit an existing message in a Discord channel
handle_call(Request, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(Info, State) -> any()
Handle connection initiation
init(X1) -> any()
Initialize the gen_server with token and command handler
send_message(ChannelId::binary(), Content::binary(), Token::binary()) -> {ok, binary()} | {error, term()}
Send a message to a Discord channel
start_link(Token::binary() | string()) -> {ok, pid()} | {error, term()}
Start the Discord bot client with just a token (no command handler)
start_link(Token::binary() | string(), Options::list()) -> {ok, pid()} | {error, term()}
Start the Discord bot client with token and options Options can include: - {command_handler, Module} - Module implementing handle_message/4 - {command_handler, {Module, Function}} - MFA style handler - {command_handler, Fun} - Function with arity 4
terminate(Reason, State) -> any()
Generated by EDoc