AybApi 1.0.2
dotnet add package AybApi --version 1.0.2
NuGet\Install-Package AybApi -Version 1.0.2
<PackageReference Include="AybApi" Version="1.0.2" />
<PackageVersion Include="AybApi" Version="1.0.2" />
<PackageReference Include="AybApi" />
paket add AybApi --version 1.0.2
#r "nuget: AybApi, 1.0.2"
#:package AybApi@1.0.2
#addin nuget:?package=AybApi&version=1.0.2
#tool nuget:?package=AybApi&version=1.0.2
ayb-api
The official Javascript AYB api wrapper. Looking for another language? Java, Python, JavaScript. If you would like a specific language added feel free to tell us in our Discord server
Classes
Client
Methods
GetStats(Action<Exception, Stats> callback)
- Fetch overall site statistics for ayblisting.com
GetBot(string id, Action<Exception, Bot> callback)
- Fetch a bot from the site using its id
GetCategory(string id, Action<Exception, Category> callback)
- Fetch a category by id
Bot
Methods
- GetCategory(Action<Exception, Category> callback)
- Fetch the category of that bot
Properties
String: OwnerId
The user property for the owner of this bot (if a Discord.js v12+ client was passed when initializing the Manager). If no client was passed or no user was found then it will default to the owner's idString: Id
The id of this botString: Username
This bot's usernameString: AvatarUrl
The direct url for this bot's avatarNumber: Score
The amount of votes this bot has on ayblisting.comString: Category
The id of this bot's categoryBoolean: Approved
Whether this bot is approved or notBoolean: Certified
This bot's certification statusBoolean: Premium
This bot's premium statusString: Prefix
The prefix of this botString: Permissions
The permissions integer for this botString: Library
The library used to create this botString: WebsiteUrl
The url to this bot's website (empty if none)String: GitHubUrl
The url to this bot's GitHub repository (empty if none)String: SupportServerInvite
The invite url for this bot's support server
Category
Properties
String: Id
The id of this categoryString: Name
The name of this categoryString: Slug
The slug of this category
Stats
Properties
int: Bots
The total number of bots on the siteint: PendingApprovals
(BETA) The number of bots pending approval from bot verifiersint: UnreadReports
The number of unread reports on the site
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release