Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides actions for Channel API interactions
Synopsis
- data GuildRequest a where
- GetGuild :: GuildId -> GuildRequest Guild
- ModifyGuild :: GuildId -> ModifyGuildOpts -> GuildRequest Guild
- DeleteGuild :: GuildId -> GuildRequest Guild
- GetGuildChannels :: GuildId -> GuildRequest [Channel]
- CreateGuildChannel :: GuildId -> Text -> [Overwrite] -> CreateGuildChannelOpts -> GuildRequest Channel
- ModifyGuildChannelPositions :: GuildId -> [(ChannelId, Int)] -> GuildRequest [Channel]
- GetGuildMember :: GuildId -> UserId -> GuildRequest GuildMember
- ListGuildMembers :: GuildId -> GuildMembersTiming -> GuildRequest [GuildMember]
- RemoveGuildMember :: GuildId -> UserId -> GuildRequest ()
- GetGuildBans :: GuildId -> GuildRequest [User]
- CreateGuildBan :: GuildId -> UserId -> Integer -> GuildRequest ()
- RemoveGuildBan :: GuildId -> UserId -> GuildRequest ()
- GetGuildRoles :: GuildId -> GuildRequest [Role]
- DeleteGuildRole :: GuildId -> RoleId -> GuildRequest Role
- GetGuildPruneCount :: GuildId -> Integer -> GuildRequest Object
- BeginGuildPrune :: GuildId -> Integer -> GuildRequest Object
- GetGuildVoiceRegions :: GuildId -> GuildRequest [VoiceRegion]
- GetGuildInvites :: GuildId -> GuildRequest [Invite]
- GetGuildIntegrations :: GuildId -> GuildRequest [Integration]
- DeleteGuildIntegration :: GuildId -> IntegrationId -> GuildRequest ()
- SyncGuildIntegration :: GuildId -> IntegrationId -> GuildRequest ()
- GetGuildEmbed :: GuildId -> GuildRequest GuildEmbed
- ModifyGuildEmbed :: GuildId -> GuildEmbed -> GuildRequest GuildEmbed
- data CreateGuildChannelOpts
- data ModifyGuildOpts = ModifyGuildOpts {}
- data GuildMembersTiming = GuildMembersTiming {}
Documentation
data GuildRequest a where Source #
Data constructor for requests. See API
GetGuild :: GuildId -> GuildRequest Guild | Returns the new |
ModifyGuild :: GuildId -> ModifyGuildOpts -> GuildRequest Guild | Modify a guild's settings. Returns the updated |
DeleteGuild :: GuildId -> GuildRequest Guild | Delete a guild permanently. User must be owner. Fires a Guild Delete |
GetGuildChannels :: GuildId -> GuildRequest [Channel] | Returns a list of guild |
CreateGuildChannel :: GuildId -> Text -> [Overwrite] -> CreateGuildChannelOpts -> GuildRequest Channel | Create a new |
ModifyGuildChannelPositions :: GuildId -> [(ChannelId, Int)] -> GuildRequest [Channel] | Modify the positions of a set of channel objects for the guild. Requires
|
GetGuildMember :: GuildId -> UserId -> GuildRequest GuildMember | Returns a guild |
ListGuildMembers :: GuildId -> GuildMembersTiming -> GuildRequest [GuildMember] | Returns a list of guild |
RemoveGuildMember :: GuildId -> UserId -> GuildRequest () | 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 |
GetGuildBans :: GuildId -> GuildRequest [User] | Returns a list of |
CreateGuildBan :: GuildId -> UserId -> Integer -> GuildRequest () | Create a guild ban, and optionally Delete previous messages sent by the banned
user. Requires the |
RemoveGuildBan :: GuildId -> UserId -> GuildRequest () | Remove the ban for a user. Requires the |
GetGuildRoles :: GuildId -> GuildRequest [Role] | Returns a list of |
DeleteGuildRole :: GuildId -> RoleId -> GuildRequest Role | Modify the positions of a set of role objects for the guild. Requires the
|
GetGuildPruneCount :: GuildId -> Integer -> GuildRequest Object | Returns an object with one |
BeginGuildPrune :: GuildId -> Integer -> GuildRequest Object | Begin a prune operation. Requires the |
GetGuildVoiceRegions :: GuildId -> GuildRequest [VoiceRegion] | Returns a list of |
GetGuildInvites :: GuildId -> GuildRequest [Invite] | Returns a list of |
GetGuildIntegrations :: GuildId -> GuildRequest [Integration] | Return a list of |
DeleteGuildIntegration :: GuildId -> IntegrationId -> GuildRequest () | Attach an |
SyncGuildIntegration :: GuildId -> IntegrationId -> GuildRequest () | Sync an |
GetGuildEmbed :: GuildId -> GuildRequest GuildEmbed | Returns the |
ModifyGuildEmbed :: GuildId -> GuildEmbed -> GuildRequest GuildEmbed | Modify a |
Instances
Request (GuildRequest a) Source # | |
Defined in Discord.Rest.Guild majorRoute :: GuildRequest a -> String Source # jsonRequest :: GuildRequest a -> JsonRequest Source # |
data CreateGuildChannelOpts Source #
Instances
Eq CreateGuildChannelOpts Source # | |
Defined in Discord.Rest.Guild | |
Show CreateGuildChannelOpts Source # | |
Defined in Discord.Rest.Guild showsPrec :: Int -> CreateGuildChannelOpts -> ShowS # show :: CreateGuildChannelOpts -> String # showList :: [CreateGuildChannelOpts] -> ShowS # |
data ModifyGuildOpts Source #