calamity-0.1.13.0: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Channel.Guild

Description

The generic guild channel type

Documentation

data GuildChannel Source #

Instances

Instances details
Eq GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Show GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Generic GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Associated Types

type Rep GuildChannel :: Type -> Type #

TextShow GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

FromJSON GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Methods

parseJSON :: Value -> Parser GuildChannel

parseJSONList :: Value -> Parser [GuildChannel]

Updateable GuildChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated GuildChannel Source #

PermissionsIn' GuildChannel Source #

A User's Permissions in a channel are their roles and overwrites

This will fetch the guild from the cache or http as needed

Instance details

Defined in Calamity.Utils.Permissions

Methods

permissionsIn' :: forall (r :: [(Type -> Type) -> Type -> Type]) u. (BotC r, HasID User u) => GuildChannel -> u -> Sem r Permissions Source #

HasID Channel GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID Guild GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID GuildChannel GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Parser GuildChannel r 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.

Instance details

Defined in Calamity.Commands.Parser

Associated Types

type ParserResult GuildChannel Source #

Methods

parserName :: Text Source #

parse :: Sem (ParserEffs r) (ParserResult GuildChannel) Source #

HasField' "name" GuildChannel Text Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasField' "position" GuildChannel Int Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasField' "permissionOverwrites" GuildChannel (SnowflakeMap Overwrite) Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Upgradeable GuildChannel (Snowflake GuildChannel) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

upgrade :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => Snowflake GuildChannel -> Sem r (Maybe GuildChannel) Source #

PermissionsIn' (Snowflake GuildChannel) Source #

A Member's Permissions in a channel are their roles and overwrites

This will fetch the guild and channel from the cache or http as needed

Instance details

Defined in Calamity.Utils.Permissions

Methods

permissionsIn' :: forall (r :: [(Type -> Type) -> Type -> Type]) u. (BotC r, HasID User u) => Snowflake GuildChannel -> u -> Sem r Permissions Source #

PermissionsIn (Guild, GuildChannel) Source #

A Member's Permissions in a channel are their roles and overwrites

Instance details

Defined in Calamity.Utils.Permissions

type Rep GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

type Rep GuildChannel = D1 ('MetaData "GuildChannel" "Calamity.Types.Model.Channel.Guild" "calamity-0.1.13.0-inplace" 'False) (C1 ('MetaCons "GuildTextChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextChannel)) :+: (C1 ('MetaCons "GuildVoiceChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VoiceChannel)) :+: C1 ('MetaCons "GuildCategory" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Category))))
type Updated GuildChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable

type ParserResult GuildChannel Source # 
Instance details

Defined in Calamity.Commands.Parser