Calamity.Types.Model.Guild
Description
Discord Guilds
module Calamity.Types.Model.Guild.AuditLog
module Calamity.Types.Model.Guild.Ban
module Calamity.Types.Model.Guild.Emoji
data Guild Source #
Constructors
Fields
Defined in Calamity.Types.Model.Guild.Guild
Methods
(==) :: Guild -> Guild -> Bool #
(/=) :: Guild -> Guild -> Bool #
showsPrec :: Int -> Guild -> ShowS #
show :: Guild -> String #
showList :: [Guild] -> ShowS #
Associated Types
type Rep Guild :: Type -> Type #
from :: Guild -> Rep Guild x #
to :: Rep Guild x -> Guild #
parseJSON :: Value -> Parser Guild #
parseJSONList :: Value -> Parser [Guild] #
rnf :: Guild -> () #
showbPrec :: Int -> Guild -> Builder #
showb :: Guild -> Builder #
showbList :: [Guild] -> Builder #
showtPrec :: Int -> Guild -> Text #
showt :: Guild -> Text #
showtList :: [Guild] -> Text #
showtlPrec :: Int -> Guild -> Text #
showtl :: Guild -> Text #
showtlList :: [Guild] -> Text #
Defined in Calamity.Internal.Updateable
type Updated Guild Source #
update :: Updated Guild -> Guild -> Guild Source #
A Member's Permissions in a guild are just their roles
Member
Permissions
Defined in Calamity.Utils.Permissions
permissionsIn' :: forall (r :: EffectRow) u. (BotC r, HasID User u) => Guild -> u -> Sem r Permissions Source #
permissionsIn :: Guild -> Member -> Permissions Source #
getID :: UpdatedGuild -> Snowflake Guild Source #
getID :: Guild -> Snowflake Guild Source #
Defined in Calamity.Types.Model.Presence.Presence
getID :: Presence -> Snowflake Guild Source #
Defined in Calamity.Types.Model.Channel.Guild.Voice
getID :: VoiceChannel -> Snowflake Guild Source #
Defined in Calamity.Types.Model.Channel.Guild.Text
getID :: TextChannel -> Snowflake Guild Source #
Defined in Calamity.Types.Model.Channel.Guild
getID :: GuildChannel -> Snowflake Guild Source #
Defined in Calamity.Types.Model.Guild.UnavailableGuild
getID :: UnavailableGuild -> Snowflake Guild Source #
Defined in Calamity.Types.Model.Guild.Ban
getID :: BanData -> Snowflake Guild Source #
ParameterParser for guilds, this only looks in the cache. Use Snowflake Guild and use upgrade if you want to allow fetching from http.
Snowflake Guild
Snowflake
Guild
upgrade
Defined in Calamity.Commands.CalamityParsers
type ParserResult Guild
parameterInfo :: ParameterInfo
parameterDescription :: Text
parse :: Sem (ParserEffs c r) (ParserResult Guild)
getID :: Partial Guild -> Snowflake Guild Source #
Defined in Calamity.Types.Upgradeable
upgrade :: forall (r :: EffectRow). BotC r => Snowflake Guild -> Sem r (Maybe Guild) Source #
upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Member) -> Sem r (Maybe Member) Source #
upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Role) -> Sem r (Maybe Role) Source #
upgrade :: forall (r :: EffectRow). BotC r => (Snowflake Guild, Snowflake Emoji) -> Sem r (Maybe Emoji) Source #
(==) :: Partial Guild -> Partial Guild -> Bool #
(/=) :: Partial Guild -> Partial Guild -> Bool #
showsPrec :: Int -> Partial Guild -> ShowS #
show :: Partial Guild -> String #
showList :: [Partial Guild] -> ShowS #
type Rep (Partial Guild) :: Type -> Type #
from :: Partial Guild -> Rep (Partial Guild) x #
to :: Rep (Partial Guild) x -> Partial Guild #
toJSON :: Partial Guild -> Value #
toEncoding :: Partial Guild -> Encoding #
toJSONList :: [Partial Guild] -> Value #
toEncodingList :: [Partial Guild] -> Encoding #
parseJSON :: Value -> Parser (Partial Guild) #
parseJSONList :: Value -> Parser [Partial Guild] #
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 #
This will fetch the guild from the cache or http as needed
permissionsIn' :: forall (r :: EffectRow) u. (BotC r, HasID User u) => Snowflake Guild -> u -> Sem r Permissions Source #
A Member's Permissions in a channel are their roles and overwrites
permissionsIn :: (Guild, GuildChannel) -> Member -> Permissions Source #
data family Partial t Source #
Defined in Calamity.Types.Model.Channel
getID :: Partial Channel -> Snowflake Channel Source #
Defined in Calamity.Types.Model.Channel.Message
getID :: Partial Message -> Snowflake Channel Source #
Defined in Calamity.Types.Model.User
getID :: Partial User -> Snowflake User Source #
Defined in Calamity.Types.Model.Guild.Emoji
getID :: Partial Emoji -> Snowflake Emoji Source #
(==) :: Partial Channel -> Partial Channel -> Bool #
(/=) :: Partial Channel -> Partial Channel -> Bool #
(==) :: Partial User -> Partial User -> Bool #
(/=) :: Partial User -> Partial User -> Bool #
(==) :: Partial Emoji -> Partial Emoji -> Bool #
(/=) :: Partial Emoji -> Partial Emoji -> Bool #
showsPrec :: Int -> Partial Channel -> ShowS #
show :: Partial Channel -> String #
showList :: [Partial Channel] -> ShowS #
showsPrec :: Int -> Partial Message -> ShowS #
show :: Partial Message -> String #
showList :: [Partial Message] -> ShowS #
showsPrec :: Int -> Partial User -> ShowS #
show :: Partial User -> String #
showList :: [Partial User] -> ShowS #
showsPrec :: Int -> Partial Emoji -> ShowS #
show :: Partial Emoji -> String #
showList :: [Partial Emoji] -> ShowS #
type Rep (Partial Channel) :: Type -> Type #
from :: Partial Channel -> Rep (Partial Channel) x #
to :: Rep (Partial Channel) x -> Partial Channel #
type Rep (Partial Message) :: Type -> Type #
from :: Partial Message -> Rep (Partial Message) x #
to :: Rep (Partial Message) x -> Partial Message #
type Rep (Partial User) :: Type -> Type #
from :: Partial User -> Rep (Partial User) x #
to :: Rep (Partial User) x -> Partial User #
type Rep (Partial Emoji) :: Type -> Type #
from :: Partial Emoji -> Rep (Partial Emoji) x #
to :: Rep (Partial Emoji) x -> Partial Emoji #
toJSON :: Partial Channel -> Value #
toEncoding :: Partial Channel -> Encoding #
toJSONList :: [Partial Channel] -> Value #
toEncodingList :: [Partial Channel] -> Encoding #
toJSON :: Partial User -> Value #
toEncoding :: Partial User -> Encoding #
toJSONList :: [Partial User] -> Value #
toEncodingList :: [Partial User] -> Encoding #
toJSON :: Partial Emoji -> Value #
toEncoding :: Partial Emoji -> Encoding #
toJSONList :: [Partial Emoji] -> Value #
toEncodingList :: [Partial Emoji] -> Encoding #
parseJSON :: Value -> Parser (Partial Channel) #
parseJSONList :: Value -> Parser [Partial Channel] #
parseJSON :: Value -> Parser (Partial Message) #
parseJSONList :: Value -> Parser [Partial Message] #
parseJSON :: Value -> Parser (Partial User) #
parseJSONList :: Value -> Parser [Partial User] #
parseJSON :: Value -> Parser (Partial Emoji) #
parseJSONList :: Value -> Parser [Partial Emoji] #
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 Message -> Builder #
showb :: Partial Message -> Builder #
showbList :: [Partial Message] -> Builder #
showtPrec :: Int -> Partial Message -> Text #
showt :: Partial Message -> Text #
showtList :: [Partial Message] -> Text #
showtlPrec :: Int -> Partial Message -> Text #
showtl :: Partial Message -> Text #
showtlList :: [Partial Message] -> 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 #
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 #
module Calamity.Types.Model.Guild.Member
module Calamity.Types.Model.Guild.Overwrite
module Calamity.Types.Model.Guild.Invite
module Calamity.Types.Model.Guild.Role
module Calamity.Types.Model.Guild.UnavailableGuild
module Calamity.Types.Model.Guild.Permissions