calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Types.Model.Channel.Guild

Description

The generic guild channel type

Documentation

data GuildChannel Source #

Instances

Instances details
FromJSON GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

Show 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 #

Eq GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

TextShow GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID Channel GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID GuildChannel GuildChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Guild

HasID Guild GuildChannel 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)

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 Updated GuildChannel Source # 
Instance details

Defined in Calamity.Internal.Updateable

type ParserResult GuildChannel 
Instance details

Defined in Calamity.Commands.CalamityParsers

type ParserResult GuildChannel = GuildChannel