Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Provides actions for Scheduled Event API
Synopsis
- data ScheduledEventRequest a where
- ListScheduledEvents :: GuildId -> ScheduledEventRequest [ScheduledEvent]
- CreateScheduledEvent :: GuildId -> CreateScheduledEventData -> ScheduledEventRequest ScheduledEvent
- GetScheduledEvent :: GuildId -> ScheduledEventId -> ScheduledEventRequest ScheduledEvent
- ModifyScheduledEvent :: GuildId -> ScheduledEventId -> ModifyScheduledEventData -> ScheduledEventRequest ScheduledEvent
- DeleteScheduledEvent :: GuildId -> ScheduledEventId -> ScheduledEventRequest ()
- GetScheduledEventUsers :: GuildId -> ScheduledEventId -> ScheduledEventRequest [ScheduledEventUser]
Documentation
data ScheduledEventRequest a where Source #
Data constructor for requests. See https://discord.com/developers/docs/resources/guild-scheduled-event
ListScheduledEvents :: GuildId -> ScheduledEventRequest [ScheduledEvent] | Gets all the Scheduled Events of a Guild |
CreateScheduledEvent :: GuildId -> CreateScheduledEventData -> ScheduledEventRequest ScheduledEvent | Creates a new ScheduledEvent |
GetScheduledEvent :: GuildId -> ScheduledEventId -> ScheduledEventRequest ScheduledEvent | Gets the information about an Event |
ModifyScheduledEvent :: GuildId -> ScheduledEventId -> ModifyScheduledEventData -> ScheduledEventRequest ScheduledEvent | Modifies a Scheduled Event's information |
DeleteScheduledEvent :: GuildId -> ScheduledEventId -> ScheduledEventRequest () | Delete a ScheduledEvent |
GetScheduledEventUsers :: GuildId -> ScheduledEventId -> ScheduledEventRequest [ScheduledEventUser] | Gets the Users that subscribed to the event |
Instances
Request (ScheduledEventRequest a) Source # | |
Defined in Discord.Internal.Rest.ScheduledEvents majorRoute :: ScheduledEventRequest a -> String Source # jsonRequest :: ScheduledEventRequest a -> JsonRequest Source # |