calamity-0.1.14.7: 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 #

TextShow Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

FromJSON Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Methods

parseJSON :: Value -> Parser Member

parseJSONList :: Value -> Parser [Member]

Tellable Member Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (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 Guild Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

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

Parser Member r Source #

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

Associated Types

type ParserResult Member Source #

Methods

parserName :: Text Source #

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

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

Defined in Calamity.Types.Upgradeable

Methods

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

Tellable (Snowflake Member) Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

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

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

Parser (Snowflake Member) r Source #

Accepts both plain IDs and mentions

Instance details

Defined in Calamity.Commands.Parser

Associated Types

type ParserResult (Snowflake Member) Source #

Methods

parserName :: Text Source #

parse :: Sem (ParserEffs r) (ParserResult (Snowflake Member)) Source #

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.1.14.7-inplace" 'False) (C1 ('MetaCons "Member" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User)) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "discriminator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "bot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "avatar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "mfaEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "verified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "email") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64)) :*: S1 ('MetaSel ('Just "premiumType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64))) :*: (S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Just "nick") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector (Snowflake Role))) :*: S1 ('MetaSel ('Just "joinedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)) :*: (S1 ('MetaSel ('Just "deaf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "mute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))
type ParserResult Member Source # 
Instance details

Defined in Calamity.Commands.Parser

type ParserResult (Snowflake Member) Source # 
Instance details

Defined in Calamity.Commands.Parser