Calamity.Types.Model.Guild.Emoji
Description
Discord emojis
data Emoji Source #
Constructors
Fields
Defined in Calamity.Types.Model.Guild.Emoji
Methods
(==) :: Emoji -> Emoji -> Bool #
(/=) :: Emoji -> Emoji -> Bool #
showsPrec :: Int -> Emoji -> ShowS #
show :: Emoji -> String #
showList :: [Emoji] -> ShowS #
Associated Types
type Rep Emoji :: Type -> Type #
from :: Emoji -> Rep Emoji x #
to :: Rep Emoji x -> Emoji #
showbPrec :: Int -> Emoji -> Builder
showb :: Emoji -> Builder
showbList :: [Emoji] -> Builder
showtPrec :: Int -> Emoji -> Text
showt :: Emoji -> Text
showtList :: [Emoji] -> Text
showtlPrec :: Int -> Emoji -> Text
showtl :: Emoji -> Text
showtlList :: [Emoji] -> Text
parseJSON :: Value -> Parser Emoji
parseJSONList :: Value -> Parser [Emoji]
toJSON :: Emoji -> Value
toEncoding :: Emoji -> Encoding
toJSONList :: [Emoji] -> Value
toEncodingList :: [Emoji] -> Encoding
getID :: Emoji -> Snowflake Emoji Source #
Parser for emojis in the guild the command was invoked in, this only looks in the cache. Use Snowflake Emoji and use upgrade if you want to allow fetching from http.
Snowflake Emoji
Snowflake
Emoji
upgrade
Defined in Calamity.Commands.Parser
type ParserResult Emoji Source #
parserName :: Text Source #
parse :: Sem (ParserEffs r) (ParserResult Emoji) Source #
getID :: Partial Emoji -> Snowflake Emoji Source #
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: [(Type -> Type) -> Type -> Type]). BotC r => (Snowflake Guild, Snowflake Emoji) -> Sem r (Maybe Emoji) Source #
(==) :: Partial Emoji -> Partial Emoji -> Bool #
(/=) :: Partial Emoji -> Partial Emoji -> Bool #
showsPrec :: Int -> Partial Emoji -> ShowS #
show :: Partial Emoji -> String #
showList :: [Partial Emoji] -> ShowS #
type Rep (Partial Emoji) :: Type -> Type #
from :: Partial Emoji -> Rep (Partial Emoji) x #
to :: Rep (Partial Emoji) x -> Partial Emoji #
showbPrec :: Int -> Partial Emoji -> Builder
showb :: Partial Emoji -> Builder
showbList :: [Partial Emoji] -> Builder
showtPrec :: Int -> Partial Emoji -> Text
showt :: Partial Emoji -> Text
showtList :: [Partial Emoji] -> Text
showtlPrec :: Int -> Partial Emoji -> Text
showtl :: Partial Emoji -> Text
showtlList :: [Partial Emoji] -> Text
parseJSON :: Value -> Parser (Partial Emoji)
parseJSONList :: Value -> Parser [Partial Emoji]
toJSON :: Partial Emoji -> Value
toEncoding :: Partial Emoji -> Encoding
toJSONList :: [Partial Emoji] -> Value
toEncodingList :: [Partial Emoji] -> Encoding
type ParserResult (Snowflake Emoji) Source #
parse :: Sem (ParserEffs r) (ParserResult (Snowflake Emoji)) Source #
data family Partial t Source #
Defined in Calamity.Types.Model.Channel
getID :: Partial Channel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Guild.Guild
getID :: Partial Guild -> Snowflake Guild Source #
Defined in Calamity.Types.Model.User
getID :: Partial User -> Snowflake User Source #
(==) :: Partial Channel -> Partial Channel -> Bool #
(/=) :: Partial Channel -> Partial Channel -> Bool #
(==) :: Partial Guild -> Partial Guild -> Bool #
(/=) :: Partial Guild -> Partial Guild -> Bool #
(==) :: Partial User -> Partial User -> Bool #
(/=) :: Partial User -> Partial User -> Bool #
showsPrec :: Int -> Partial Channel -> ShowS #
show :: Partial Channel -> String #
showList :: [Partial Channel] -> ShowS #
showsPrec :: Int -> Partial Guild -> ShowS #
show :: Partial Guild -> String #
showList :: [Partial Guild] -> ShowS #
showsPrec :: Int -> Partial User -> ShowS #
show :: Partial User -> String #
showList :: [Partial User] -> ShowS #
type Rep (Partial Channel) :: Type -> Type #
from :: Partial Channel -> Rep (Partial Channel) x #
to :: Rep (Partial Channel) x -> Partial Channel #
type Rep (Partial Guild) :: Type -> Type #
from :: Partial Guild -> Rep (Partial Guild) x #
to :: Rep (Partial Guild) x -> Partial Guild #
type Rep (Partial User) :: Type -> Type #
from :: Partial User -> Rep (Partial User) x #
to :: Rep (Partial User) x -> Partial User #
showbPrec :: Int -> Partial Channel -> Builder
showb :: Partial Channel -> Builder
showbList :: [Partial Channel] -> Builder
showtPrec :: Int -> Partial Channel -> Text
showt :: Partial Channel -> Text
showtList :: [Partial Channel] -> Text
showtlPrec :: Int -> Partial Channel -> Text
showtl :: Partial Channel -> Text
showtlList :: [Partial Channel] -> Text
showbPrec :: Int -> Partial Guild -> Builder
showb :: Partial Guild -> Builder
showbList :: [Partial Guild] -> Builder
showtPrec :: Int -> Partial Guild -> Text
showt :: Partial Guild -> Text
showtList :: [Partial Guild] -> Text
showtlPrec :: Int -> Partial Guild -> Text
showtl :: Partial Guild -> Text
showtlList :: [Partial Guild] -> Text
showbPrec :: Int -> Partial User -> Builder
showb :: Partial User -> Builder
showbList :: [Partial User] -> Builder
showtPrec :: Int -> Partial User -> Text
showt :: Partial User -> Text
showtList :: [Partial User] -> Text
showtlPrec :: Int -> Partial User -> Text
showtl :: Partial User -> Text
showtlList :: [Partial User] -> Text
parseJSON :: Value -> Parser (Partial Channel)
parseJSONList :: Value -> Parser [Partial Channel]
parseJSON :: Value -> Parser (Partial Guild)
parseJSONList :: Value -> Parser [Partial Guild]
parseJSON :: Value -> Parser (Partial User)
parseJSONList :: Value -> Parser [Partial User]
toJSON :: Partial Channel -> Value
toEncoding :: Partial Channel -> Encoding
toJSONList :: [Partial Channel] -> Value
toEncodingList :: [Partial Channel] -> Encoding
toJSON :: Partial Guild -> Value
toEncoding :: Partial Guild -> Encoding
toJSONList :: [Partial Guild] -> Value
toEncodingList :: [Partial Guild] -> Encoding
toJSON :: Partial User -> Value
toEncoding :: Partial User -> Encoding
toJSONList :: [Partial User] -> Value
toEncodingList :: [Partial User] -> Encoding
data RawEmoji Source #
(==) :: RawEmoji -> RawEmoji -> Bool #
(/=) :: RawEmoji -> RawEmoji -> Bool #
showsPrec :: Int -> RawEmoji -> ShowS #
show :: RawEmoji -> String #
showList :: [RawEmoji] -> ShowS #
type Rep RawEmoji :: Type -> Type #
from :: RawEmoji -> Rep RawEmoji x #
to :: Rep RawEmoji x -> RawEmoji #
showbPrec :: Int -> RawEmoji -> Builder
showb :: RawEmoji -> Builder
showbList :: [RawEmoji] -> Builder
showtPrec :: Int -> RawEmoji -> Text
showt :: RawEmoji -> Text
showtList :: [RawEmoji] -> Text
showtlPrec :: Int -> RawEmoji -> Text
showtl :: RawEmoji -> Text
showtlList :: [RawEmoji] -> Text
parseJSON :: Value -> Parser RawEmoji
parseJSONList :: Value -> Parser [RawEmoji]
toJSON :: RawEmoji -> Value
toEncoding :: RawEmoji -> Encoding
toJSONList :: [RawEmoji] -> Value
toEncodingList :: [RawEmoji] -> Encoding
type ParserResult RawEmoji Source #
parse :: Sem (ParserEffs r) (ParserResult RawEmoji) Source #