Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides actions for Guild API interactions.
- data GuildRequest a where
- GetGuild :: Snowflake -> GuildRequest Guild
- ModifyGuild :: ToJSON a => Snowflake -> a -> GuildRequest Guild
- DeleteGuild :: Snowflake -> GuildRequest Guild
- GetGuildChannels :: Snowflake -> GuildRequest [Channel]
- CreateGuildChannel :: ToJSON a => Snowflake -> a -> GuildRequest Channel
- ModifyChanPosition :: ToJSON a => Snowflake -> a -> GuildRequest [Channel]
- GetGuildMember :: Snowflake -> Snowflake -> GuildRequest Member
- ListGuildMembers :: Snowflake -> Range -> GuildRequest [Member]
- AddGuildMember :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest Member
- ModifyGuildMember :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest ()
- RemoveGuildMember :: Snowflake -> Snowflake -> GuildRequest ()
- GetGuildBans :: Snowflake -> GuildRequest [User]
- CreateGuildBan :: Snowflake -> Snowflake -> Integer -> GuildRequest ()
- RemoveGuildBan :: Snowflake -> Snowflake -> GuildRequest ()
- GetGuildRoles :: Snowflake -> GuildRequest [Role]
- CreateGuildRole :: Snowflake -> GuildRequest Role
- ModifyGuildRolePositions :: ToJSON a => Snowflake -> [a] -> GuildRequest [Role]
- ModifyGuildRole :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest Role
- DeleteGuildRole :: Snowflake -> Snowflake -> GuildRequest Role
- GetGuildPruneCount :: Snowflake -> Integer -> GuildRequest Object
- BeginGuildPrune :: Snowflake -> Integer -> GuildRequest Object
- GetGuildVoiceRegions :: Snowflake -> GuildRequest [VoiceRegion]
- GetGuildInvites :: Snowflake -> GuildRequest [Invite]
- GetGuildIntegrations :: Snowflake -> GuildRequest [Integration]
- CreateGuildIntegration :: ToJSON a => Snowflake -> a -> GuildRequest ()
- ModifyGuildIntegration :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest ()
- DeleteGuildIntegration :: Snowflake -> Snowflake -> GuildRequest ()
- SyncGuildIntegration :: Snowflake -> Snowflake -> GuildRequest ()
- GetGuildEmbed :: Snowflake -> GuildRequest GuildEmbed
- ModifyGuildEmbed :: Snowflake -> GuildEmbed -> GuildRequest GuildEmbed
Documentation
data GuildRequest a where Source #
Data constructor for Guild requests. See Guild API
GetGuild :: Snowflake -> GuildRequest Guild | Returns the new |
ModifyGuild :: ToJSON a => Snowflake -> a -> GuildRequest Guild | Modify a guild's settings. Returns the updated |
DeleteGuild :: Snowflake -> GuildRequest Guild | Delete a guild permanently. User must be owner. Fires a Guild Delete |
GetGuildChannels :: Snowflake -> GuildRequest [Channel] | Returns a list of guild |
CreateGuildChannel :: ToJSON a => Snowflake -> a -> GuildRequest Channel | Create a new |
ModifyChanPosition :: ToJSON a => Snowflake -> a -> GuildRequest [Channel] | Modify the positions of a set of channel objects for the guild. Requires
|
GetGuildMember :: Snowflake -> Snowflake -> GuildRequest Member | Returns a guild |
ListGuildMembers :: Snowflake -> Range -> GuildRequest [Member] | Returns a list of guild |
AddGuildMember :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest Member | Adds a user to the guild, provided you have a valid oauth2 access token
for the user with the guilds.join scope. Returns the guild |
ModifyGuildMember :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest () | Modify attributes of a guild |
RemoveGuildMember :: Snowflake -> Snowflake -> GuildRequest () | Remove a member from a guild. Requires |
GetGuildBans :: Snowflake -> GuildRequest [User] | Returns a list of |
CreateGuildBan :: Snowflake -> Snowflake -> Integer -> GuildRequest () | Create a guild ban, and optionally delete previous messages sent by the banned
user. Requires the |
RemoveGuildBan :: Snowflake -> Snowflake -> GuildRequest () | Remove the ban for a user. Requires the |
GetGuildRoles :: Snowflake -> GuildRequest [Role] | Returns a list of |
CreateGuildRole :: Snowflake -> GuildRequest Role | Create a new |
ModifyGuildRolePositions :: ToJSON a => Snowflake -> [a] -> GuildRequest [Role] | Modify the positions of a set of role objects for the guild. Requires the
|
ModifyGuildRole :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest Role | Modify a guild role. Requires the |
DeleteGuildRole :: Snowflake -> Snowflake -> GuildRequest Role | Delete a guild role. Requires the |
GetGuildPruneCount :: Snowflake -> Integer -> GuildRequest Object | Returns an object with one |
BeginGuildPrune :: Snowflake -> Integer -> GuildRequest Object | Begin a prune operation. Requires the |
GetGuildVoiceRegions :: Snowflake -> GuildRequest [VoiceRegion] | Returns a list of |
GetGuildInvites :: Snowflake -> GuildRequest [Invite] | Returns a list of |
GetGuildIntegrations :: Snowflake -> GuildRequest [Integration] | Return a list of |
CreateGuildIntegration :: ToJSON a => Snowflake -> a -> GuildRequest () | Attach an |
ModifyGuildIntegration :: ToJSON a => Snowflake -> Snowflake -> a -> GuildRequest () | Modify the behavior and settings of a |
DeleteGuildIntegration :: Snowflake -> Snowflake -> GuildRequest () | Delete the attached |
SyncGuildIntegration :: Snowflake -> Snowflake -> GuildRequest () | Sync an |
GetGuildEmbed :: Snowflake -> GuildRequest GuildEmbed | Returns the |
ModifyGuildEmbed :: Snowflake -> GuildEmbed -> GuildRequest GuildEmbed | Modify a |
Eq (GuildRequest a) Source # | |
Hashable (GuildRequest a) Source # | |
FromJSON a => DoFetch (GuildRequest a) Source # | |
RateLimit (GuildRequest a) Source # | |