Guild scheduled events.
Every function returns {:ok, result}, :ok when Discord sends no body, or
{:error, %Lingo.Error{}}. Calls go to the current bot (see Lingo.with_bot/2).
Summary
Types
A user interested in a scheduled event, with their guild member when asked for.
Functions
Creates a scheduled event.
Deletes a scheduled event.
Fetches a scheduled event.
Lists a guild's scheduled events.
Lists the users interested in a scheduled event, in user id order. Options:
:limit, :with_member (include their guild member), :before and
:after.
Edits a scheduled event, including starting or ending it.
Types
@type event_user() :: %{ guild_scheduled_event_id: Lingo.Api.id(), user: Lingo.Type.User.t(), member: Lingo.Type.Member.t() | nil }
A user interested in a scheduled event, with their guild member when asked for.
Functions
@spec create(Lingo.Api.id(), Lingo.Api.params(), keyword()) :: Lingo.Api.result(Lingo.Type.ScheduledEvent.t())
Creates a scheduled event.
@spec delete(Lingo.Api.id(), Lingo.Api.id()) :: Lingo.Api.result()
Deletes a scheduled event.
@spec get(Lingo.Api.id(), Lingo.Api.id(), keyword()) :: Lingo.Api.result(Lingo.Type.ScheduledEvent.t())
Fetches a scheduled event.
@spec list( Lingo.Api.id(), keyword() ) :: Lingo.Api.result([Lingo.Type.ScheduledEvent.t()])
Lists a guild's scheduled events.
@spec list_users(Lingo.Api.id(), Lingo.Api.id(), keyword()) :: Lingo.Api.result([event_user()])
Lists the users interested in a scheduled event, in user id order. Options:
:limit, :with_member (include their guild member), :before and
:after.
@spec update(Lingo.Api.id(), Lingo.Api.id(), Lingo.Api.params(), keyword()) :: Lingo.Api.result(Lingo.Type.ScheduledEvent.t())
Edits a scheduled event, including starting or ending it.