AybApi 1.0.2

dotnet add package AybApi --version 1.0.2
                    
NuGet\Install-Package AybApi -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AybApi" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AybApi" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="AybApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AybApi --version 1.0.2
                    
#r "nuget: AybApi, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AybApi@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AybApi&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=AybApi&version=1.0.2
                    
Install as a Cake Tool

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 id

  • String: Id The id of this bot

  • String: Username This bot's username

  • String: AvatarUrl The direct url for this bot's avatar

  • Number: Score The amount of votes this bot has on ayblisting.com

  • String: Category The id of this bot's category

  • Boolean: Approved Whether this bot is approved or not

  • Boolean: Certified This bot's certification status

  • Boolean: Premium This bot's premium status

  • String: Prefix The prefix of this bot

  • String: Permissions The permissions integer for this bot

  • String: Library The library used to create this bot

  • String: 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 category

  • String: Name The name of this category

  • String: Slug The slug of this category


Stats

Properties
  • int: Bots The total number of bots on the site

  • int: PendingApprovals (BETA) The number of bots pending approval from bot verifiers

  • int: UnreadReports The number of unread reports on the site

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 668 8/29/2020
1.0.1 592 8/29/2020

Initial release