calamity-0.1.30.3: A library for writing discord bots in haskell
Safe HaskellNone
LanguageHaskell2010

Calamity.Commands.CalamityParsers

Description

ParameterParser instances for calamity models

Orphan instances

Member (CacheEff :: (Type -> Type) -> Type -> Type) r => ParameterParser Guild c r Source #

ParameterParser for guilds, this only looks in the cache. Use Snowflake Guild and use upgrade if you want to allow fetching from http.

Instance details

Associated Types

type ParserResult Guild #

(Member (CacheEff :: (Type -> Type) -> Type -> Type) r, CalamityCommandContext c) => ParameterParser Member c r 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.

Instance details

Associated Types

type ParserResult Member #

Member (CacheEff :: (Type -> Type) -> Type -> Type) r => ParameterParser User c r Source #

ParameterParser for users, this only looks in the cache. Use Snowflake User and use upgrade if you want to allow fetching from http.

Instance details

Associated Types

type ParserResult User #

(Member (CacheEff :: (Type -> Type) -> Type -> Type) r, CalamityCommandContext c) => ParameterParser Role c r 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.

Instance details

Associated Types

type ParserResult Role #

ParameterParser RawEmoji c r Source #

Parses both discord emojis, and unicode emojis

Instance details

Associated Types

type ParserResult RawEmoji #

(Member (CacheEff :: (Type -> Type) -> Type -> Type) r, CalamityCommandContext c) => ParameterParser Emoji c r Source #

ParameterParser 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.

Instance details

Associated Types

type ParserResult Emoji #

(Member (CacheEff :: (Type -> Type) -> Type -> Type) r, CalamityCommandContext c) => ParameterParser GuildChannel c r Source #

ParameterParser for channels in the guild the command was invoked in, this only looks in the cache. Use Snowflake Channel and use upgrade if you want to allow fetching from http.

Instance details

Associated Types

type ParserResult GuildChannel #

Typeable (Snowflake a) => ParameterParser (Snowflake a) c r Source # 
Instance details

Associated Types

type ParserResult (Snowflake a) #

ParameterParser (Snowflake Channel) c r Source #

Accepts both plain IDs and mentions

Instance details

Associated Types

type ParserResult (Snowflake Channel) #

ParameterParser (Snowflake Member) c r Source #

Accepts both plain IDs and mentions

Instance details

Associated Types

type ParserResult (Snowflake Member) #

ParameterParser (Snowflake User) c r Source #

Accepts both plain IDs and mentions

Instance details

Associated Types

type ParserResult (Snowflake User) #

ParameterParser (Snowflake Role) c r Source #

Accepts both plain IDs and mentions

Instance details

Associated Types

type ParserResult (Snowflake Role) #

ParameterParser (Snowflake Emoji) c r Source #

Accepts both plain IDs and uses of emoji

Instance details

Associated Types

type ParserResult (Snowflake Emoji) #