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 #
parseJSON :: Value -> Parser Member #
parseJSONList :: Value -> Parser [Member] #
rnf :: 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 #
Defined in Calamity.Types.Tellable
getChannel :: forall (r :: EffectRow). (BotC r, Member0 (Error RestError) r) => Member -> Sem r (Snowflake Channel) Source #
Defined in Calamity.Utils.Message
mention :: Member -> Text Source #
getID :: Member -> Snowflake Member Source #
Defined in Calamity.Types.Model.User
getID :: User -> Snowflake Member Source #
getID :: Member -> Snowflake User Source #
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.
Snowflake Member
Snowflake
Member
upgrade
Defined in Calamity.Commands.CalamityParsers
type ParserResult Member
parameterInfo :: ParameterInfo
parameterDescription :: Text
parse :: Sem (ParserEffs c r) (ParserResult Member)
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Member) -> Sem r (Maybe Member) Source #
getChannel :: forall (r :: EffectRow). (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)
parse :: Sem (ParserEffs c r) (ParserResult (Snowflake Member))