calamity-0.3.0.0: A library for writing discord bots in haskell
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 #

FromJSON GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

NFData GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Methods

rnf :: GuildChannel -> () #

TextShow GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Updateable GuildChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated GuildChannel Source #

Mentionable GuildChannel Source # 
Instance details

Defined in Calamity.Utils.Message

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 :: EffectRow) 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

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

(Member (CacheEff :: (Type -> Type) -> Type -> Type) r, CalamityCommandContext c) => ParameterParser GuildChannel c r

ParameterParser 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.CalamityParsers

Associated Types

type ParserResult GuildChannel

Methods

parameterInfo :: ParameterInfo

parameterDescription :: Text

parse :: Sem (ParserEffs c r) (ParserResult GuildChannel)

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 :: EffectRow). BotC r => Snowflake GuildChannel -> Sem r (Maybe GuildChannel) Source #

Mentionable (Snowflake GuildChannel) Source # 
Instance details

Defined in Calamity.Utils.Message

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 :: EffectRow) 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.3.0.0-inplace" 'False) (C1 ('MetaCons "GuildTextChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TextChannel)) :+: (C1 ('MetaCons "GuildVoiceChannel" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VoiceChannel)) :+: C1 ('MetaCons "GuildCategory" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Category))))
type ParserResult GuildChannel 
Instance details

Defined in Calamity.Commands.CalamityParsers

type ParserResult GuildChannel = GuildChannel
type Updated GuildChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable