Entities metadata

Retrieve informations about guilds or guild members .

get
Guild metadata

https://api.yeahbot.net/guild/:guild_id
Request
Response
Path Parameters
Guild ID
required
integer
Unique ID of the guild.
200: OK
Guild found.
{
"code": 200,
"message": "OK",
"content": {
"channels": {
"textChannels": [
{
"slowmode": 0,
"name": "general",
"id": "123456789012345678"
},
...
],
"voiceChannels": [
{
"name": "General",
"bitrate": 49000,
"id": "123456789012345678"
},
...
]
},
"memberCount": 1,
"roles": [
{
"permissions": 104324169,
"name": "Admin",
"id": "123456789012345678",
"color_raw": 13041664
},
...
],
"name": "YeahBot-DEV",
"id": 123456789012345678,
"iconUrl": "https://cdn.discordapp.com/icons/393141696793149450/a526bfe2c3970116016602fac05f8e6c.png",
"ownerId": "108507143732232192"
}
}
404: Not Found
Guild not found.
{
"code": 404,
"message": "Not found",
"error": "unknown_guild"
}

get
Member metadata

https://api.yeahbot.net/member/:guild_id/:user_id
Request
Response
Path Parameters
Guild ID
required
integer
Unique ID of the guild.
User ID
required
integer
Unique ID of the user.
200: OK
Member found.
{
"code": 200,
"message": "OK",
"content": {
"isBot": false,
"canAddBot": true,
"isAdmin": true
}
}
404: Not Found
Member or guild not found.
{
"code": 404,
"message": "Not found",
"error": "unknown_member"
}
or
{
"code": 404,
"message": "Not found",
"error": "unknown_guild"
}