View Source Quarrel.Listener behaviour (quarrel v0.1.3)

Process that listens for gateway events

Link to this section Summary

Link to this section Types

@type new_state() :: term()
@type return() ::
  {:noreply, new_state()}
  | {:noreply, new_state(), timeout() | :hibernate | {:continue, term()}}
  | {:stop, reason :: term(), new_state()}
@type state() :: term()

Link to this section Callbacks

Link to this callback

handle_channel_create(t, state)

View Source (optional)
@callback handle_channel_create(Nostrum.Struct.Channel.t(), state()) :: return()
Link to this callback

handle_channel_delete(t, state)

View Source (optional)
@callback handle_channel_delete(Nostrum.Struct.Channel.t(), state()) :: return()
Link to this callback

handle_channel_pins_update(map, state)

View Source (optional)
@callback handle_channel_pins_update(map(), state()) :: return()
Link to this callback

handle_channel_update(arg1, t)

View Source (optional)
@callback handle_channel_update(
  Nostrum.Struct.Channel.t() | nil,
  Nostrum.Struct.Channel.t()
) :: return()
Link to this callback

handle_guild_available(t, state)

View Source (optional)
@callback handle_guild_available(Nostrum.Struct.Guild.t(), state()) :: return()
Link to this callback

handle_guild_ban_add(t, state)

View Source (optional)
@callback handle_guild_ban_add(Nostrum.Struct.User.t(), state()) :: return()
Link to this callback

handle_guild_ban_remove(t, state)

View Source (optional)
@callback handle_guild_ban_remove(Nostrum.Struct.User.t(), state()) :: return()
Link to this callback

handle_guild_create(t, state)

View Source (optional)
@callback handle_guild_create(Nostrum.Struct.Guild.t(), state()) :: return()
Link to this callback

handle_guild_delete(t, unavailable, state)

View Source (optional)
@callback handle_guild_delete(Nostrum.Struct.Guild.t(), unavailable :: boolean(), state()) ::
  return()
Link to this callback

handle_guild_emojis_update(list, list, state)

View Source (optional)
@callback handle_guild_emojis_update(
  [Nostrum.Struct.Emoji.t()],
  [Nostrum.Struct.Emoji.t()],
  state()
) ::
  return()
Link to this callback

handle_guild_integrations_update(map, state)

View Source (optional)
@callback handle_guild_integrations_update(map(), state()) :: return()
Link to this callback

handle_guild_member_add(t, state)

View Source (optional)
@callback handle_guild_member_add(Nostrum.Struct.Guild.Member.t(), state()) :: return()
Link to this callback

handle_guild_member_remove(t, state)

View Source (optional)
@callback handle_guild_member_remove(Nostrum.Struct.Guild.Member.t(), state()) :: return()
Link to this callback

handle_guild_member_update(t, t, state)

View Source (optional)
@callback handle_guild_member_update(
  Nostrum.Struct.Guild.Member.t(),
  Nostrum.Struct.Guild.Member.t(),
  state()
) :: return()
Link to this callback

handle_guild_members_chunk(map, state)

View Source (optional)
@callback handle_guild_members_chunk(map(), state()) :: return()
Link to this callback

handle_guild_role_create(t, state)

View Source (optional)
@callback handle_guild_role_create(Nostrum.Struct.Guild.Role.t(), state()) :: return()
Link to this callback

handle_guild_role_delete(t, state)

View Source (optional)
@callback handle_guild_role_delete(Nostrum.Struct.Guild.Role.t(), state()) :: return()
Link to this callback

handle_guild_role_update(t, t, state)

View Source (optional)
@callback handle_guild_role_update(
  Nostrum.Struct.Guild.Role.t(),
  Nostrum.Struct.Guild.Role.t(),
  state()
) ::
  return()
Link to this callback

handle_guild_unavailable(t, state)

View Source (optional)
@callback handle_guild_unavailable(Nostrum.Struct.Guild.UnavailableGuild.t(), state()) ::
  return()
Link to this callback

handle_guild_update(t, t, state)

View Source (optional)
@callback handle_guild_update(Nostrum.Struct.Guild.t(), Nostrum.Struct.Guild.t(), state()) ::
  return()
Link to this callback

handle_interaction_create(t, state)

View Source (optional)
@callback handle_interaction_create(Nostrum.Struct.Interaction.t(), state()) :: return()
Link to this callback

handle_message_ack(map, state)

View Source (optional)
@callback handle_message_ack(map(), state()) :: return()
Link to this callback

handle_message_create(t, state)

View Source (optional)
@callback handle_message_create(Nostrum.Struct.Message.t(), state()) :: return()
Link to this callback

handle_message_delete(t, state)

View Source (optional)
@callback handle_message_delete(Nostrum.Struct.Event.MessageDelete.t(), state()) ::
  return()
Link to this callback

handle_message_delete_bulk(t, state)

View Source (optional)
@callback handle_message_delete_bulk(Nostrum.Struct.Event.MessageDeleteBulk.t(), state()) ::
  return()
Link to this callback

handle_message_reaction_add(map, state)

View Source (optional)
@callback handle_message_reaction_add(map(), state()) :: return()
Link to this callback

handle_message_reaction_remove(map, state)

View Source (optional)
@callback handle_message_reaction_remove(map(), state()) :: return()
Link to this callback

handle_message_reaction_remove_all(map, state)

View Source (optional)
@callback handle_message_reaction_remove_all(map(), state()) :: return()
Link to this callback

handle_message_reaction_remove_emoji(map, state)

View Source (optional)
@callback handle_message_reaction_remove_emoji(map(), state()) :: return()
Link to this callback

handle_message_update(t, state)

View Source (optional)
@callback handle_message_update(Nostrum.Struct.Message.t(), state()) :: return()
Link to this callback

handle_presence_update(arg1, map, state)

View Source (optional)
@callback handle_presence_update(map() | nil, map(), state()) :: return()
Link to this callback

handle_ready(map, state)

View Source (optional)
@callback handle_ready(map(), state()) :: return()
Link to this callback

handle_resumed(map, state)

View Source (optional)
@callback handle_resumed(map(), state()) :: return()
Link to this callback

handle_typing_start(map, state)

View Source (optional)
@callback handle_typing_start(map(), state()) :: return()
Link to this callback

handle_user_settings_update(map, state)

View Source (optional)
@callback handle_user_settings_update(map(), state()) :: return()
Link to this callback

handle_user_update(arg1, t, state)

View Source (optional)
@callback handle_user_update(
  Nostrum.Struct.User.t() | nil,
  Nostrum.Struct.User.t(),
  state()
) :: return()
Link to this callback

handle_voice_server_update(map, state)

View Source (optional)
@callback handle_voice_server_update(map(), state()) :: return()
Link to this callback

handle_voice_speaking_update(t, state)

View Source (optional)
@callback handle_voice_speaking_update(Nostrum.Struct.Event.SpeakingUpdate.t(), state()) ::
  return()
Link to this callback

handle_voice_state_update(map, state)

View Source (optional)
@callback handle_voice_state_update(map(), state()) :: return()
Link to this callback

handle_webhooks_update(map, state)

View Source (optional)
@callback handle_webhooks_update(map(), state()) :: return()