calamity-0.1.11.1: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Types.Model.User

Description

A User

Documentation

data User Source #

Instances

Instances details
Eq User Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

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

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

Show User Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in Calamity.Types.Model.User

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

TextShow User Source # 
Instance details

Defined in Calamity.Types.Model.User

FromJSON User Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

parseJSON :: Value -> Parser User

parseJSONList :: Value -> Parser [User]

ToJSON User Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

toJSON :: User -> Value

toEncoding :: User -> Encoding

toJSONList :: [User] -> Value

toEncodingList :: [User] -> Encoding

Updateable User Source # 
Instance details

Defined in Calamity.Internal.Updateable

Associated Types

type Updated User Source #

Methods

update :: Updated User -> User -> User Source #

Tellable User Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

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

HasID Member User Source # 
Instance details

Defined in Calamity.Types.Model.User

HasID User Message Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Message

HasID User Member Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Member

HasID User User Source # 
Instance details

Defined in Calamity.Types.Model.User

HasID User Reaction Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Reaction

HasID User GroupChannel Source # 
Instance details

Defined in Calamity.Types.Model.Channel.Group

HasID User AuditLogEntry Source # 
Instance details

Defined in Calamity.Types.Model.Guild.AuditLog

HasID User Presence Source # 
Instance details

Defined in Calamity.Types.Model.Presence.Presence

HasID User BanData Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Ban

Member (CacheEff :: (Type -> Type) -> Type -> Type) r => Parser User r Source #

Parser for users, this only looks in the cache. Use Snowflake User and use upgrade if you want to allow fetching from http.

Instance details

Defined in Calamity.Commands.Parser

Associated Types

type ParserResult User Source #

Methods

parserName :: Text Source #

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

HasID User (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Upgradeable User (Snowflake User) Source # 
Instance details

Defined in Calamity.Types.Upgradeable

Methods

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

Eq (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Show (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Generic (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Associated Types

type Rep (Partial User) :: Type -> Type #

Methods

from :: Partial User -> Rep (Partial User) x #

to :: Rep (Partial User) x -> Partial User #

TextShow (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

FromJSON (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

parseJSON :: Value -> Parser (Partial User)

parseJSONList :: Value -> Parser [Partial User]

ToJSON (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

toJSON :: Partial User -> Value

toEncoding :: Partial User -> Encoding

toJSONList :: [Partial User] -> Value

toEncodingList :: [Partial User] -> Encoding

Tellable (Snowflake User) Source # 
Instance details

Defined in Calamity.Types.Tellable

Methods

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

Parser (Snowflake User) r Source # 
Instance details

Defined in Calamity.Commands.Parser

Associated Types

type ParserResult (Snowflake User) Source #

Methods

parserName :: Text Source #

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

type Rep User Source # 
Instance details

Defined in Calamity.Types.Model.User

newtype Partial User Source # 
Instance details

Defined in Calamity.Types.Model.User

type Updated User Source # 
Instance details

Defined in Calamity.Internal.Updateable

type ParserResult User Source # 
Instance details

Defined in Calamity.Commands.Parser

type Rep (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

type Rep (Partial User) = D1 ('MetaData "Partial" "Calamity.Types.Model.User" "calamity-0.1.11.1-inplace" 'True) (C1 ('MetaCons "PartialUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User))))
type ParserResult (Snowflake User) Source # 
Instance details

Defined in Calamity.Commands.Parser

data family Partial t Source #

Instances

Instances details
HasID Channel (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

HasID Guild (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

HasID User (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

HasID Emoji (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Eq (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Eq (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Eq (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Eq (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Show (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Show (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Show (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Show (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Generic (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

Associated Types

type Rep (Partial Channel) :: Type -> Type #

Generic (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Associated Types

type Rep (Partial Guild) :: Type -> Type #

Generic (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

Associated Types

type Rep (Partial User) :: Type -> Type #

Methods

from :: Partial User -> Rep (Partial User) x #

to :: Rep (Partial User) x -> Partial User #

Generic (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Associated Types

type Rep (Partial Emoji) :: Type -> Type #

TextShow (Partial Channel) 
Instance details

Defined in Calamity.Types.Model.Channel

TextShow (Partial Guild) 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

TextShow (Partial User) 
Instance details

Defined in Calamity.Types.Model.User

TextShow (Partial Emoji) 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

FromJSON (Partial Channel) 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

parseJSON :: Value -> Parser (Partial Channel)

parseJSONList :: Value -> Parser [Partial Channel]

FromJSON (Partial Guild) 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

parseJSON :: Value -> Parser (Partial Guild)

parseJSONList :: Value -> Parser [Partial Guild]

FromJSON (Partial User) 
Instance details

Defined in Calamity.Types.Model.User

Methods

parseJSON :: Value -> Parser (Partial User)

parseJSONList :: Value -> Parser [Partial User]

FromJSON (Partial Emoji) 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Methods

parseJSON :: Value -> Parser (Partial Emoji)

parseJSONList :: Value -> Parser [Partial Emoji]

ToJSON (Partial Channel) 
Instance details

Defined in Calamity.Types.Model.Channel

Methods

toJSON :: Partial Channel -> Value

toEncoding :: Partial Channel -> Encoding

toJSONList :: [Partial Channel] -> Value

toEncodingList :: [Partial Channel] -> Encoding

ToJSON (Partial Guild) 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

Methods

toJSON :: Partial Guild -> Value

toEncoding :: Partial Guild -> Encoding

toJSONList :: [Partial Guild] -> Value

toEncodingList :: [Partial Guild] -> Encoding

ToJSON (Partial User) 
Instance details

Defined in Calamity.Types.Model.User

Methods

toJSON :: Partial User -> Value

toEncoding :: Partial User -> Encoding

toJSONList :: [Partial User] -> Value

toEncodingList :: [Partial User] -> Encoding

ToJSON (Partial Emoji) 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

Methods

toJSON :: Partial Emoji -> Value

toEncoding :: Partial Emoji -> Encoding

toJSONList :: [Partial Emoji] -> Value

toEncodingList :: [Partial Emoji] -> Encoding

data Partial Channel Source # 
Instance details

Defined in Calamity.Types.Model.Channel

data Partial Guild Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

newtype Partial User Source # 
Instance details

Defined in Calamity.Types.Model.User

data Partial Emoji Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

type Rep (Partial Channel) Source # 
Instance details

Defined in Calamity.Types.Model.Channel

type Rep (Partial Guild) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Guild

type Rep (Partial Guild) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Guild" "calamity-0.1.11.1-inplace" 'False) (C1 ('MetaCons "PartialGuild" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))
type Rep (Partial User) Source # 
Instance details

Defined in Calamity.Types.Model.User

type Rep (Partial User) = D1 ('MetaData "Partial" "Calamity.Types.Model.User" "calamity-0.1.11.1-inplace" 'True) (C1 ('MetaCons "PartialUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake User))))
type Rep (Partial Emoji) Source # 
Instance details

Defined in Calamity.Types.Model.Guild.Emoji

type Rep (Partial Emoji) = D1 ('MetaData "Partial" "Calamity.Types.Model.Guild.Emoji" "calamity-0.1.11.1-inplace" 'False) (C1 ('MetaCons "PartialEmoji" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Snowflake Emoji)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data StatusType Source #

Constructors

Idle 
DND 
Online 
Offline 
Invisible 

Instances

Instances details
Enum StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

Eq StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

Show StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

Generic StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

Associated Types

type Rep StatusType :: Type -> Type #

TextShow StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

FromJSON StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

parseJSON :: Value -> Parser StatusType

parseJSONList :: Value -> Parser [StatusType]

ToJSON StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

Methods

toJSON :: StatusType -> Value

toEncoding :: StatusType -> Encoding

toJSONList :: [StatusType] -> Value

toEncodingList :: [StatusType] -> Encoding

type Rep StatusType Source # 
Instance details

Defined in Calamity.Types.Model.User

type Rep StatusType = D1 ('MetaData "StatusType" "Calamity.Types.Model.User" "calamity-0.1.11.1-inplace" 'False) ((C1 ('MetaCons "Idle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DND" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Online" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Offline" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Invisible" 'PrefixI 'False) (U1 :: Type -> Type))))