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

Calamity.Types.Model.Guild.Member

Description

Guild Members

Documentation

data Member Source #

Instances

Instances details
FromJSON Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

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

Eq Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

Methods

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

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

TextShow 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

(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)

(k ~ A_Lens, a ~ Maybe (Colour Double), b ~ Maybe (Colour Double)) => LabelOptic "accentColour" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Avatar, b ~ Avatar) => LabelOptic "avatar" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe UserBanner, b ~ Maybe UserBanner) => LabelOptic "banner" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "bot" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "deaf" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "discriminator" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "email" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Word64, b ~ Maybe Word64) => LabelOptic "flags" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Snowflake User, b ~ Snowflake User) => LabelOptic "id" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ UTCTime, b ~ UTCTime) => LabelOptic "joinedAt" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "locale" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "memberAvatar" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "mfaEnabled" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Bool, b ~ Bool) => LabelOptic "mute" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "nick" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Word64, b ~ Maybe Word64) => LabelOptic "premiumType" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Vector (Snowflake Role), b ~ Vector (Snowflake Role)) => LabelOptic "roles" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "username" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "verified" k Member Member a b Source # 
Instance details

Defined in Calamity.Types.Model.Guild.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 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