calamity-0.3.0.0: A library for writing discord bots in haskell
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.Guild.Member

Description

Guild Members

Documentation

data Member Source #

Instances

Instances details
Eq Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Methods

(==) :: Member -> Member -> Bool #

(/=) :: Member -> Member -> Bool #

Show Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Generic Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Associated Types

type Rep Member :: Type -> Type #

Methods

from :: Member -> Rep Member x #

to :: Rep Member x -> Member #

FromJSON Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

NFData Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Methods

rnf :: Member -> () #

TextShow Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Tellable Member Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

getChannel :: forall (r :: EffectRow). (BotC r, Member0 (Error RestError) r) => Member -> Sem r (Snowflake Channel) Source #

Mentionable Member Source # 
Instance details

Defined in Calamity.Utils.Message

Methods

mention :: Member -> Text Source #

HasID Member Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

HasID Member User Source # 
Instance details

Defined in Calamity.Types.Model.User

HasID User Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

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

ParameterParser for members in the guild the command was invoked in, this only looks in the cache. Use Snowflake Member and use upgrade if you want to allow fetching from http.

Instance details

Defined in Calamity.Commands.CalamityParsers

Associated Types

type ParserResult Member

Methods

parameterInfo :: ParameterInfo

parameterDescription :: Text

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

Upgradeable Member (Snowflake Guild, Snowflake Member) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Member) -> Sem r (Maybe Member) Source #

Tellable (Snowflake Member) Source # 
Instance details

Defined in Calamity.Types.Tellable

ToMessage (TMention Member) Source #

Add a Member id to the list of allowed user mentions

Instance details

Defined in Calamity.Types.Tellable

Mentionable (Snowflake Member) Source # 
Instance details

Defined in Calamity.Utils.Message

ParameterParser (Snowflake Member) c r

Accepts both plain IDs and mentions

Instance details

Defined in Calamity.Commands.CalamityParsers

Associated Types

type ParserResult (Snowflake Member)

Methods

parameterInfo :: ParameterInfo

parameterDescription :: Text

parse :: Sem (ParserEffs c r) (ParserResult (Snowflake Member))

type Rep Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

type Rep Member = D1 ('MetaData "Member" "Calamity.Types.Model.Guild.Member" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "Member" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Snowflake User)) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "discriminator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "bot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "avatar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "mfaEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "verified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: (((S1 ('MetaSel ('Just "email") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Word64))) :*: (S1 ('MetaSel ('Just "premiumType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Just "nick") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector (Snowflake Role))) :*: S1 ('MetaSel ('Just "joinedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UTCTime)) :*: (S1 ('MetaSel ('Just "deaf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "mute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))))
type ParserResult Member 
Instance details

Defined in Calamity.Commands.CalamityParsers

type ParserResult Member = Member
type ParserResult (Snowflake Member) 
Instance details

Defined in Calamity.Commands.CalamityParsers

type ParserResult (Snowflake Member) = Snowflake Member