Calamity.Types.Model.Guild.Member
Description
Guild Members
data Member Source #
Constructors
Fields
Defined in Calamity.Types.Model.Guild.Member
Methods
(==) :: Member -> Member -> Bool #
(/=) :: Member -> Member -> Bool #
showsPrec :: Int -> Member -> ShowS #
show :: Member -> String #
showList :: [Member] -> ShowS #
Associated Types
type Rep Member :: Type -> Type #
from :: Member -> Rep Member x #
to :: Rep Member x -> Member #
showbPrec :: Int -> Member -> Builder
showb :: Member -> Builder
showbList :: [Member] -> Builder
showtPrec :: Int -> Member -> Text
showt :: Member -> Text
showtList :: [Member] -> Text
showtlPrec :: Int -> Member -> Text
showtl :: Member -> Text
showtlList :: [Member] -> Text
parseJSON :: Value -> Parser Member
parseJSONList :: Value -> Parser [Member]
Defined in Calamity.Types.Tellable
getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member0 (Error RestError) r) => Member -> Sem r (Snowflake Channel) Source #
Defined in Calamity.Utils.Message
mention :: Member -> Text Source #
getID :: Member -> Snowflake Guild Source #
getID :: Member -> Snowflake Member Source #
Defined in Calamity.Types.Model.User
getID :: User -> Snowflake Member Source #
getID :: Member -> Snowflake User 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.
Snowflake Member
Snowflake
Member
upgrade
Defined in Calamity.Commands.Parser
type ParserResult Member Source #
parserName :: Text Source #
parse :: Sem (ParserEffs r) (ParserResult Member) Source #
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => (Snowflake Guild, Snowflake Member) -> Sem r (Maybe Member) Source #
getChannel :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, Member0 (Error RestError) r) => Snowflake Member -> Sem r (Snowflake Channel) Source #
Add a Member id to the list of allowed user mentions
intoMsg :: TMention Member -> Endo CreateMessageOptions Source #
mention :: Snowflake Member -> Text Source #
Accepts both plain IDs and mentions
type ParserResult (Snowflake Member) Source #
parse :: Sem (ParserEffs r) (ParserResult (Snowflake Member)) Source #