mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
Improve JSDoc types
This commit is contained in:
parent
448a1e793f
commit
950f448543
@ -23,6 +23,5 @@ module.exports = () => {
|
||||
`));
|
||||
console.log(leeks.colours.cyanBright(`Discord Tickets bot v${version} by eartharoid`));
|
||||
console.log(leeks.colours.cyanBright(homepage + '\n'));
|
||||
console.log(leeks.colours.cyanBright(link('Sponsor this project', 'https://go.eartharoid.me/sponsor-dsctickets')));
|
||||
console.log('\n\n');
|
||||
console.log(leeks.colours.cyanBright(link('Sponsor this project', 'https://go.eartharoid.me/sponsor-dsctickets') + '\n'));
|
||||
};
|
@ -104,7 +104,8 @@ const {
|
||||
} = require('discord.js');
|
||||
|
||||
/**
|
||||
* The bot client
|
||||
* The Discord client
|
||||
* @typedef {Bot} Bot
|
||||
* @extends {Client}
|
||||
*/
|
||||
class Bot extends Client {
|
||||
|
@ -14,7 +14,7 @@ module.exports = class Command {
|
||||
*/
|
||||
/**
|
||||
* Create a new Command
|
||||
* @param {Client} client - The Discord Client
|
||||
* @param {import('../../').Bot} client - The Discord Client
|
||||
* @param {Object} data - Command data
|
||||
* @param {string} data.name - The name of the command (3-32)
|
||||
* @param {string} data.description - The description of the command (1-100)
|
||||
|
@ -13,7 +13,7 @@ const parseArgs = require('command-line-args');
|
||||
module.exports = class CommandManager {
|
||||
/**
|
||||
* Create a CommandManager instance
|
||||
* @param {Client} client
|
||||
* @param {import('../..').Bot} client
|
||||
*/
|
||||
constructor(client) {
|
||||
/** The Discord Client */
|
||||
|
@ -1,5 +1,10 @@
|
||||
module.exports = class EventListener {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {import("../..").Bot} client
|
||||
* @param {*} data
|
||||
*/
|
||||
constructor(client, data) {
|
||||
this.client = client;
|
||||
this.event = data.event;
|
||||
|
@ -7,7 +7,7 @@ const { path } = require('../../utils/fs');
|
||||
module.exports = class ListenerLoader {
|
||||
/**
|
||||
* Create a ListenerLoader instance
|
||||
* @param {Client} client
|
||||
* @param {import('../..').Bot} client
|
||||
*/
|
||||
constructor(client) {
|
||||
/** The Discord Client */
|
||||
|
@ -9,7 +9,7 @@ const Plugin = require('./plugin');
|
||||
module.exports = class PluginManager {
|
||||
/**
|
||||
* Create a PluginManager instance
|
||||
* @param {Client} client
|
||||
* @param {import('../..').Bot} client
|
||||
*/
|
||||
constructor(client) {
|
||||
/** The Discord Client */
|
||||
|
@ -11,7 +11,7 @@ const { path } = require('../../utils/fs');
|
||||
module.exports = class Plugin {
|
||||
/**
|
||||
* Create a new Plugin
|
||||
* @param {Client} client The Discord Client
|
||||
* @param {import('../..').Bot} client The Discord Client
|
||||
* @param {String} id The plugin ID
|
||||
* @param {Object} options Plugin options
|
||||
* @param {String} options.name A human-friendly name (can be different to the name in package.json)
|
||||
|
@ -4,7 +4,7 @@ const { int2hex } = require('../../utils');
|
||||
module.exports = class TicketArchives {
|
||||
/**
|
||||
* Create a TicketArchives instance
|
||||
* @param {Client} client
|
||||
* @param {import('../..').Bot} client
|
||||
*/
|
||||
constructor(client) {
|
||||
|
||||
|
@ -7,7 +7,7 @@ const { footer } = require('../../utils/discord');
|
||||
module.exports = class TicketManager extends EventEmitter {
|
||||
/**
|
||||
* Create a TicketManager instance
|
||||
* @param {Client} client
|
||||
* @param {import('../..').Bot} client
|
||||
*/
|
||||
constructor(client) {
|
||||
super();
|
||||
|
Loading…
Reference in New Issue
Block a user