Module discord_bot_light_client

Behaviours: gen_server.

Function Index

code_change/3
edit_interaction_response/3
edit_interaction_response/4
edit_message/4
get_stored_app_id/0
handle_call/3
handle_cast/2
handle_info/2
init/1
register_global_command/3
register_global_command/4
register_global_commands/2
register_guild_command/4
register_guild_command/5
respond_to_interaction/3
respond_to_interaction/4
respond_to_interaction_with_files/4
respond_to_interaction_with_files/5
send_message/3
send_message_with_files/4
start_link/1
start_link/2
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

edit_interaction_response/3

edit_interaction_response(InteractionToken::binary(), MessageId::binary(), Content::binary()) -> ok | {error, term()}

edit_interaction_response/4

edit_interaction_response(InteractionToken::binary(), MessageId::binary(), Content::binary(), Options::map()) -> ok | {error, term()}

edit_message/4

edit_message(ChannelId::binary(), MessageId::binary(), Content::binary(), Token::binary()) -> {ok, integer(), binary()} | {error, term()}

get_stored_app_id/0

get_stored_app_id() -> {ok, binary()} | {error, not_available}

handle_call/3

handle_call(Request, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

register_global_command/3

register_global_command(CommandName::binary(), Description::binary(), Token::binary()) -> {ok, binary()} | {error, term()}

register_global_command/4

register_global_command(CommandName::binary(), Description::binary(), Options::list(), Token::binary()) -> {ok, binary()} | {error, term()}

register_global_commands/2

register_global_commands(Commands::list(), Token::binary()) -> {ok, list()} | {error, term()}

register_guild_command/4

register_guild_command(GuildId::binary(), CommandName::binary(), Description::binary(), Token::binary()) -> {ok, binary()} | {error, term()}

register_guild_command/5

register_guild_command(GuildId::binary(), CommandName::binary(), Description::binary(), Options::list(), Token::binary()) -> {ok, binary()} | {error, term()}

respond_to_interaction/3

respond_to_interaction(InteractionId::binary(), InteractionToken::binary(), Content::binary()) -> ok | {error, term()}

respond_to_interaction/4

respond_to_interaction(InteractionId::binary(), InteractionToken::binary(), Content::binary(), Options::map()) -> ok | {error, term()}

respond_to_interaction_with_files/4

respond_to_interaction_with_files(InteractionId::binary(), InteractionToken::binary(), Content::binary(), Files::[{binary(), binary()}]) -> ok | {error, term()}

respond_to_interaction_with_files/5

respond_to_interaction_with_files(InteractionId::binary(), InteractionToken::binary(), Content::binary(), Files::[{binary(), binary()}], Options::map()) -> ok | {error, term()}

send_message/3

send_message(ChannelId::binary(), Content::binary(), Token::binary()) -> {ok, binary()} | {error, term()}

send_message_with_files/4

send_message_with_files(ChannelId::binary(), Content::binary(), Token::binary(), Files::[{binary(), binary()}]) -> {ok, binary()} | {error, term()}

start_link/1

start_link(Token::binary() | string()) -> {ok, pid()} | {error, term()}

start_link/2

start_link(Token::binary() | string(), Options::list()) -> {ok, pid()} | {error, term()}

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc