Calamity.Types.Model.Channel.Guild
Description
The generic guild channel type
data GuildChannel Source #
Constructors
Defined in Calamity.Types.Model.Channel.Guild
Methods
(==) :: GuildChannel -> GuildChannel -> Bool #
(/=) :: GuildChannel -> GuildChannel -> Bool #
showsPrec :: Int -> GuildChannel -> ShowS #
show :: GuildChannel -> String #
showList :: [GuildChannel] -> ShowS #
Associated Types
type Rep GuildChannel :: Type -> Type #
from :: GuildChannel -> Rep GuildChannel x #
to :: Rep GuildChannel x -> GuildChannel #
showbPrec :: Int -> GuildChannel -> Builder
showb :: GuildChannel -> Builder
showbList :: [GuildChannel] -> Builder
showtPrec :: Int -> GuildChannel -> Text
showt :: GuildChannel -> Text
showtList :: [GuildChannel] -> Text
showtlPrec :: Int -> GuildChannel -> Text
showtl :: GuildChannel -> Text
showtlList :: [GuildChannel] -> Text
parseJSON :: Value -> Parser GuildChannel
parseJSONList :: Value -> Parser [GuildChannel]
Defined in Calamity.Internal.Updateable
type Updated GuildChannel Source #
update :: Updated GuildChannel -> GuildChannel -> GuildChannel Source #
Defined in Calamity.Utils.Permissions
permissionsIn' :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => GuildChannel -> Member -> Sem r Permissions Source #
getID :: GuildChannel -> Snowflake Channel Source #
getID :: GuildChannel -> Snowflake Guild Source #
getID :: GuildChannel -> Snowflake GuildChannel Source #
Parser for channels in the guild the command was invoked in, this only looks in the cache. Use Snowflake Channel and use upgrade if you want to allow fetching from http.
Snowflake Channel
Snowflake
Channel
upgrade
Defined in Calamity.Commands.Parser
type ParserResult GuildChannel Source #
parserName :: Text Source #
parse :: Sem (ParserEffs r) (ParserResult GuildChannel) Source #
field' :: Lens GuildChannel GuildChannel Text Text
field' :: Lens GuildChannel GuildChannel Int Int
field' :: Lens GuildChannel GuildChannel (SnowflakeMap Overwrite) (SnowflakeMap Overwrite)
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => Snowflake GuildChannel -> Sem r (Maybe GuildChannel) Source #
permissionsIn' :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => Snowflake GuildChannel -> Member -> Sem r Permissions Source #
permissionsIn :: (Guild, GuildChannel) -> Member -> Permissions Source #
module Calamity.Types.Model.Channel.Guild.Category
module Calamity.Types.Model.Channel.Guild.Text
module Calamity.Types.Model.Channel.Guild.Voice