You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
GraphQL
60 lines
1.3 KiB
GraphQL
type User {
|
|
id: ID!
|
|
discordId: String
|
|
name: String!
|
|
avatar: String
|
|
bot: Boolean
|
|
tag: String!
|
|
}
|
|
type Role {
|
|
id: ID!
|
|
discordId: String
|
|
name: String
|
|
color: String
|
|
members(first: Int = 10, offset: Int = 0, id: String): [GuildMember]
|
|
}
|
|
type GuildMember {
|
|
id: ID!
|
|
discordId: String
|
|
user: User
|
|
nickname: String
|
|
roles(first: Int = 10, offset: Int = 0, id: String): [Role]
|
|
highestRole: Role
|
|
}
|
|
type Guild {
|
|
id: ID!
|
|
discordId: String
|
|
name: String
|
|
owner: GuildMember
|
|
members(first: Int = 10, offset: Int = 0, id: String): [GuildMember]
|
|
roles(first: Int = 10, offset: Int = 0, id: String): [Role]
|
|
memberCount: Int
|
|
icon: String
|
|
ready: Boolean
|
|
saved(first: Int = 10, offset: Int = 0, id: String, name: String): [SavedEntry!]
|
|
}
|
|
type Client {
|
|
guilds(first: Int = 10, offset: Int = 0, id: String): [Guild]
|
|
user: User
|
|
ping: Float
|
|
status: Int
|
|
uptime: Int
|
|
}
|
|
type SavedEntry {
|
|
id: ID!
|
|
url: String!
|
|
name: String!
|
|
}
|
|
type LogEntry {
|
|
id: ID!
|
|
message: String
|
|
level: String
|
|
timestamp: String
|
|
}
|
|
type Query {
|
|
client: Client
|
|
presences: [String]!
|
|
config: String
|
|
prefix: String
|
|
logs(first: Int, offset: Int = 0, id: String, last: Int = 10): [LogEntry]
|
|
} |