module Calamity.Types.Model.Guild.Ban
( BanData(..) ) where
import Calamity.Internal.AesonThings
import Calamity.Internal.Utils ()
import Calamity.Types.Model.Guild.Guild
import Calamity.Types.Model.User
import Calamity.Types.Snowflake
import Data.Aeson
import GHC.Generics
import TextShow
import qualified TextShow.Generic as TSG
data BanData = BanData
{ BanData -> Snowflake Guild
guildID :: Snowflake Guild
, BanData -> User
user :: User
}
deriving ( Int -> BanData -> ShowS
[BanData] -> ShowS
BanData -> String
(Int -> BanData -> ShowS)
-> (BanData -> String) -> ([BanData] -> ShowS) -> Show BanData
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BanData] -> ShowS
$cshowList :: [BanData] -> ShowS
show :: BanData -> String
$cshow :: BanData -> String
showsPrec :: Int -> BanData -> ShowS
$cshowsPrec :: Int -> BanData -> ShowS
Show, (forall x. BanData -> Rep BanData x)
-> (forall x. Rep BanData x -> BanData) -> Generic BanData
forall x. Rep BanData x -> BanData
forall x. BanData -> Rep BanData x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BanData x -> BanData
$cfrom :: forall x. BanData -> Rep BanData x
Generic )
deriving ( Value -> Parser [BanData]
Value -> Parser BanData
(Value -> Parser BanData)
-> (Value -> Parser [BanData]) -> FromJSON BanData
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BanData]
$cparseJSONList :: Value -> Parser [BanData]
parseJSON :: Value -> Parser BanData
$cparseJSON :: Value -> Parser BanData
FromJSON ) via CalamityJSON BanData
deriving ( Int -> BanData -> Builder
Int -> BanData -> Text
Int -> BanData -> Text
[BanData] -> Builder
[BanData] -> Text
[BanData] -> Text
BanData -> Builder
BanData -> Text
BanData -> Text
(Int -> BanData -> Builder)
-> (BanData -> Builder)
-> ([BanData] -> Builder)
-> (Int -> BanData -> Text)
-> (BanData -> Text)
-> ([BanData] -> Text)
-> (Int -> BanData -> Text)
-> (BanData -> Text)
-> ([BanData] -> Text)
-> TextShow BanData
forall a.
(Int -> a -> Builder)
-> (a -> Builder)
-> ([a] -> Builder)
-> (Int -> a -> Text)
-> (a -> Text)
-> ([a] -> Text)
-> (Int -> a -> Text)
-> (a -> Text)
-> ([a] -> Text)
-> TextShow a
showtlList :: [BanData] -> Text
$cshowtlList :: [BanData] -> Text
showtl :: BanData -> Text
$cshowtl :: BanData -> Text
showtlPrec :: Int -> BanData -> Text
$cshowtlPrec :: Int -> BanData -> Text
showtList :: [BanData] -> Text
$cshowtList :: [BanData] -> Text
showt :: BanData -> Text
$cshowt :: BanData -> Text
showtPrec :: Int -> BanData -> Text
$cshowtPrec :: Int -> BanData -> Text
showbList :: [BanData] -> Builder
$cshowbList :: [BanData] -> Builder
showb :: BanData -> Builder
$cshowb :: BanData -> Builder
showbPrec :: Int -> BanData -> Builder
$cshowbPrec :: Int -> BanData -> Builder
TextShow ) via TSG.FromGeneric BanData
deriving ( HasID Guild ) via HasIDField "guildID" BanData
deriving ( HasID User ) via HasIDField "user" BanData