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 #
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
parseJSON :: Value -> Parser Role
parseJSONList :: Value -> Parser [Role]
toJSON :: Role -> Value
toEncoding :: Role -> Encoding
toJSONList :: [Role] -> Value
toEncodingList :: [Role] -> Encoding
Defined in Calamity.Utils.Message
mention :: Role -> Text Source #
getID :: Role -> Snowflake Role Source #
Add a Role id to the list of allowed role mentions
Role
Defined in Calamity.Types.Tellable
intoMsg :: TMention Role -> Endo CreateMessageOptions Source #
mention :: Snowflake Role -> Text Source #
Defined in Calamity.Commands.Parser
type ParserResult (Snowflake Role) Source #
parserName :: Text Source #
parse :: Sem (ParserEffs r) (ParserResult (Snowflake Role)) Source #