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.
78 lines
1.6 KiB
GraphQL
78 lines
1.6 KiB
GraphQL
6 years ago
|
type Presence {
|
||
|
game: String
|
||
|
status: String
|
||
|
}
|
||
6 years ago
|
type User {
|
||
6 years ago
|
id: ID!
|
||
|
discordId: String
|
||
|
name: String!
|
||
6 years ago
|
avatar: String
|
||
|
bot: Boolean
|
||
6 years ago
|
tag: String!
|
||
6 years ago
|
presence: Presence
|
||
6 years ago
|
}
|
||
|
type Role {
|
||
6 years ago
|
id: ID!
|
||
|
discordId: String
|
||
6 years ago
|
name: String
|
||
|
color: String
|
||
6 years ago
|
members(first: Int = 10, offset: Int = 0, id: String): [GuildMember]
|
||
6 years ago
|
}
|
||
|
type GuildMember {
|
||
6 years ago
|
id: ID!
|
||
|
discordId: String
|
||
6 years ago
|
user: User
|
||
|
nickname: String
|
||
6 years ago
|
roles(first: Int = 10, offset: Int = 0, id: String): [Role]
|
||
6 years ago
|
highestRole: Role
|
||
|
}
|
||
6 years ago
|
type DJ {
|
||
|
queue(first: Int = 10, offset: Int = 0, id: String): [MediaEntry]
|
||
|
playing: Boolean
|
||
|
volume: Float
|
||
|
repeat: Boolean
|
||
|
currentSong: MediaEntry
|
||
|
quality: String
|
||
|
voiceChannel: String
|
||
|
}
|
||
6 years ago
|
type Guild {
|
||
6 years ago
|
id: ID!
|
||
|
discordId: String
|
||
6 years ago
|
name: String
|
||
|
owner: GuildMember
|
||
6 years ago
|
dj: DJ
|
||
6 years ago
|
members(first: Int = 10, offset: Int = 0, id: String): [GuildMember]
|
||
6 years ago
|
memberCount: Int!
|
||
6 years ago
|
roles(first: Int = 10, offset: Int = 0, id: String): [Role]
|
||
6 years ago
|
icon: String
|
||
6 years ago
|
ready: Boolean
|
||
6 years ago
|
saved(first: Int = 10, offset: Int = 0, id: String, name: String): [MediaEntry!]
|
||
|
savedCount: Int!
|
||
6 years ago
|
}
|
||
|
type Client {
|
||
6 years ago
|
guilds(first: Int = 10, offset: Int = 0, id: String): [Guild]
|
||
6 years ago
|
guildCount: Int
|
||
6 years ago
|
user: User
|
||
|
ping: Float
|
||
|
status: Int
|
||
|
uptime: Int
|
||
|
}
|
||
6 years ago
|
type MediaEntry {
|
||
6 years ago
|
id: ID!
|
||
|
url: String!
|
||
|
name: String!
|
||
6 years ago
|
thumbnail: String
|
||
6 years ago
|
}
|
||
|
type LogEntry {
|
||
|
id: ID!
|
||
|
message: String
|
||
|
level: String
|
||
|
timestamp: String
|
||
|
}
|
||
6 years ago
|
type Query {
|
||
|
client: Client
|
||
6 years ago
|
presences: [String]!
|
||
|
config: String
|
||
|
prefix: String
|
||
6 years ago
|
logs(first: Int, offset: Int = 0, id: String, last: Int = 10, level: String): [LogEntry]
|
||
6 years ago
|
}
|