Calamity.Types.Model.Guild.Role
Description
Guild roles
data Role Source #
Constructors
Fields
Defined in Calamity.Types.Model.Guild.Role
Methods
(==) :: Role -> Role -> Bool #
(/=) :: Role -> Role -> Bool #
showsPrec :: Int -> Role -> ShowS #
show :: Role -> String #
showList :: [Role] -> ShowS #
Associated Types
type Rep Role :: Type -> Type #
from :: Role -> Rep Role x #
to :: Rep Role x -> Role #
toJSON :: Role -> Value #
toEncoding :: Role -> Encoding #
toJSONList :: [Role] -> Value #
toEncodingList :: [Role] -> Encoding #
parseJSON :: Value -> Parser Role #
parseJSONList :: Value -> Parser [Role] #
rnf :: Role -> () #
showbPrec :: Int -> Role -> Builder #
showb :: Role -> Builder #
showbList :: [Role] -> Builder #
showtPrec :: Int -> Role -> Text #
showt :: Role -> Text #
showtList :: [Role] -> Text #
showtlPrec :: Int -> Role -> Text #
showtl :: Role -> Text #
showtlList :: [Role] -> Text #
Defined in Calamity.Utils.Message
mention :: Role -> Text Source #
getID :: Role -> Snowflake Role Source #
ParameterParser for roles in the guild the command was invoked in, this only looks in the cache. Use Snowflake Role and use upgrade if you want to allow fetching from http.
Snowflake Role
Snowflake
Role
upgrade
Defined in Calamity.Commands.CalamityParsers
type ParserResult Role
parameterInfo :: ParameterInfo
parameterDescription :: Text
parse :: Sem (ParserEffs c r) (ParserResult Role)
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Role) -> Sem r (Maybe Role) Source #
Add a Role id to the list of allowed role mentions
Defined in Calamity.Types.Tellable
intoMsg :: TMention Role -> Endo CreateMessageOptions Source #
mention :: Snowflake Role -> Text Source #
Accepts both plain IDs and mentions
type ParserResult (Snowflake Role)
parse :: Sem (ParserEffs c r) (ParserResult (Snowflake Role))