Added Query entries
- changed id to type ID! - changed id to md5 hash of base64 string of properties - added discord Id - added paging to arrays - implemented guildHandler into Guild query type - added saved to retrieve saved songs/playlists - added ready indicator boolean - added querying logs - added presences array - added config as String - added prefixpull/33/head
parent
275179b990
commit
72794a2f63
@ -1,39 +1,60 @@
|
|||||||
type User {
|
type User {
|
||||||
id: String
|
id: ID!
|
||||||
name: String
|
discordId: String
|
||||||
|
name: String!
|
||||||
avatar: String
|
avatar: String
|
||||||
bot: Boolean
|
bot: Boolean
|
||||||
tag: String
|
tag: String!
|
||||||
}
|
}
|
||||||
type Role {
|
type Role {
|
||||||
id: String
|
id: ID!
|
||||||
|
discordId: String
|
||||||
name: String
|
name: String
|
||||||
color: String
|
color: String
|
||||||
members: [GuildMember]
|
members(first: Int = 10, offset: Int = 0, id: String): [GuildMember]
|
||||||
}
|
}
|
||||||
type GuildMember {
|
type GuildMember {
|
||||||
id: String
|
id: ID!
|
||||||
|
discordId: String
|
||||||
user: User
|
user: User
|
||||||
nickname: String
|
nickname: String
|
||||||
roles: [Role]
|
roles(first: Int = 10, offset: Int = 0, id: String): [Role]
|
||||||
highestRole: Role
|
highestRole: Role
|
||||||
}
|
}
|
||||||
type Guild {
|
type Guild {
|
||||||
id: String
|
id: ID!
|
||||||
|
discordId: String
|
||||||
name: String
|
name: String
|
||||||
owner: GuildMember
|
owner: GuildMember
|
||||||
members: [GuildMember]
|
members(first: Int = 10, offset: Int = 0, id: String): [GuildMember]
|
||||||
roles: [Role]
|
roles(first: Int = 10, offset: Int = 0, id: String): [Role]
|
||||||
memberCount: Int
|
memberCount: Int
|
||||||
icon: String
|
icon: String
|
||||||
|
ready: Boolean
|
||||||
|
saved(first: Int = 10, offset: Int = 0, id: String, name: String): [SavedEntry!]
|
||||||
}
|
}
|
||||||
type Client {
|
type Client {
|
||||||
guilds(count: Int): [Guild]
|
guilds(first: Int = 10, offset: Int = 0, id: String): [Guild]
|
||||||
user: User
|
user: User
|
||||||
ping: Float
|
ping: Float
|
||||||
status: Int
|
status: Int
|
||||||
uptime: Int
|
uptime: Int
|
||||||
}
|
}
|
||||||
|
type SavedEntry {
|
||||||
|
id: ID!
|
||||||
|
url: String!
|
||||||
|
name: String!
|
||||||
|
}
|
||||||
|
type LogEntry {
|
||||||
|
id: ID!
|
||||||
|
message: String
|
||||||
|
level: String
|
||||||
|
timestamp: String
|
||||||
|
}
|
||||||
type Query {
|
type Query {
|
||||||
client: Client
|
client: Client
|
||||||
|
presences: [String]!
|
||||||
|
config: String
|
||||||
|
prefix: String
|
||||||
|
logs(first: Int, offset: Int = 0, id: String, last: Int = 10): [LogEntry]
|
||||||
}
|
}
|
Loading…
Reference in New Issue