mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Rename JaBa class to Client
This commit is contained in:
parent
d2cb694ae8
commit
8414ef0b83
105 changed files with 335 additions and 333 deletions
|
@ -10,7 +10,7 @@ const BaseEvent = require("./BaseEvent.js"),
|
||||||
fs = require("fs").promises,
|
fs = require("fs").promises,
|
||||||
mongoose = require("mongoose");
|
mongoose = require("mongoose");
|
||||||
|
|
||||||
class JaBa extends Client {
|
class JaBaClient extends Client {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
this.config = require("../config");
|
this.config = require("../config");
|
||||||
|
@ -320,4 +320,4 @@ class JaBa extends Client {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = JaBa;
|
module.exports = JaBaClient;
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Ban extends BaseCommand {
|
class Ban extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -45,14 +45,14 @@ class Ban extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class ImportMee6 extends BaseCommand {
|
class ImportMee6 extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -21,14 +21,14 @@ class ImportMee6 extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Kick extends BaseCommand {
|
class Kick extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -45,14 +45,14 @@ class Kick extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Memes extends BaseCommand {
|
class Memes extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,7 +24,7 @@ class Memes extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -52,7 +52,7 @@ class Memes extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Staff extends BaseCommand {
|
class Staff extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Staff extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Automod extends BaseCommand {
|
class Automod extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -63,14 +63,14 @@ class Automod extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Autorole extends BaseCommand {
|
class Autorole extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -43,14 +43,14 @@ class Autorole extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Config extends BaseCommand {
|
class Config extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -82,14 +82,14 @@ class Config extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Goodbye extends BaseCommand {
|
class Goodbye extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -79,14 +79,14 @@ class Goodbye extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Selectroles extends BaseCommand {
|
class Selectroles extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -82,7 +82,7 @@ class Selectroles extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -110,7 +110,7 @@ class Selectroles extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Set extends BaseCommand {
|
class Set extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -60,14 +60,14 @@ class Set extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Setlang extends BaseCommand {
|
class Setlang extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -35,14 +35,14 @@ class Setlang extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Stealemoji extends BaseCommand {
|
class Stealemoji extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Stealemoji extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Welcome extends BaseCommand {
|
class Welcome extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -79,14 +79,14 @@ class Welcome extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Achievements extends BaseCommand {
|
class Achievements extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -32,14 +32,14 @@ class Achievements extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Bank extends BaseCommand {
|
class Bank extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -44,14 +44,14 @@ class Bank extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Birthdate extends BaseCommand {
|
class Birthdate extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -67,14 +67,14 @@ class Birthdate extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Divorce extends BaseCommand {
|
class Divorce extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Divorce extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Leaderboard extends BaseCommand {
|
class Leaderboard extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Leaderboard extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -60,7 +60,7 @@ class Leaderboard extends BaseCommand {
|
||||||
const membersLeaderboard = [],
|
const membersLeaderboard = [],
|
||||||
membersData = await client.membersData.find({ guildID: interaction.guildId }).lean();
|
membersData = await client.membersData.find({ guildID: interaction.guildId }).lean();
|
||||||
|
|
||||||
client.functions.asyncForEach(membersData, member => {
|
await client.functions.asyncForEach(membersData, member => {
|
||||||
membersLeaderboard.push({
|
membersLeaderboard.push({
|
||||||
id: member.id,
|
id: member.id,
|
||||||
money: member.money + member.bankSold,
|
money: member.money + member.bankSold,
|
||||||
|
@ -108,7 +108,7 @@ class Leaderboard extends BaseCommand {
|
||||||
const membersLeaderboard = [],
|
const membersLeaderboard = [],
|
||||||
membersData = await client.membersData.find({ guildID: interaction.guildId }).lean();
|
membersData = await client.membersData.find({ guildID: interaction.guildId }).lean();
|
||||||
|
|
||||||
client.functions.asyncForEach(membersData, async member => {
|
await client.functions.asyncForEach(membersData, async member => {
|
||||||
membersLeaderboard.push({
|
membersLeaderboard.push({
|
||||||
id: member.id,
|
id: member.id,
|
||||||
level: member.level,
|
level: member.level,
|
||||||
|
@ -164,7 +164,7 @@ class Leaderboard extends BaseCommand {
|
||||||
const usersLeaderboard = [],
|
const usersLeaderboard = [],
|
||||||
usersData = await client.usersData.find({ rep: { $gt: 0 } }).lean();
|
usersData = await client.usersData.find({ rep: { $gt: 0 } }).lean();
|
||||||
|
|
||||||
client.functions.asyncForEach(usersData, async user => {
|
await client.functions.asyncForEach(usersData, async user => {
|
||||||
usersLeaderboard.push({
|
usersLeaderboard.push({
|
||||||
id: user.id,
|
id: user.id,
|
||||||
rep: user.rep,
|
rep: user.rep,
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Marry extends BaseCommand {
|
class Marry extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Marry extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Money extends BaseCommand {
|
class Money extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -32,14 +32,14 @@ class Money extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Pay extends BaseCommand {
|
class Pay extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -43,14 +43,14 @@ class Pay extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Profile extends BaseCommand {
|
class Profile extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -32,14 +32,14 @@ class Profile extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Rep extends BaseCommand {
|
class Rep extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Rep extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -49,7 +49,7 @@ class Rep extends BaseCommand {
|
||||||
if (isInCooldown) {
|
if (isInCooldown) {
|
||||||
if (isInCooldown > Date.now())
|
if (isInCooldown > Date.now())
|
||||||
return interaction.error("economy/rep:COOLDOWN", {
|
return interaction.error("economy/rep:COOLDOWN", {
|
||||||
time: client.functions.convertTime(client, isInCooldown, true, true, data.guildData.language),
|
time: client.functions.convertTime(client, isInCooldown, true, false, data.guildData.language),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Rob extends BaseCommand {
|
class Rob extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -43,14 +43,14 @@ class Rob extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Setbio extends BaseCommand {
|
class Setbio extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Setbio extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Slots extends BaseCommand {
|
class Slots extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Slots extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Transactions extends BaseCommand {
|
class Transactions extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -32,14 +32,14 @@ class Transactions extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Work extends BaseCommand {
|
class Work extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Work extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -39,7 +39,7 @@ class Work extends BaseCommand {
|
||||||
if (isInCooldown) {
|
if (isInCooldown) {
|
||||||
if (isInCooldown > Date.now())
|
if (isInCooldown > Date.now())
|
||||||
return interaction.error("economy/work:COOLDOWN", {
|
return interaction.error("economy/work:COOLDOWN", {
|
||||||
time: client.functions.convertTime(client, isInCooldown, true, true, data.guildData.language),
|
time: client.functions.convertTime(client, isInCooldown, true, false, data.guildData.language),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (Date.now() > data.memberData.cooldowns.work + 24 * 60 * 60 * 1000) data.memberData.workStreak = 0;
|
if (Date.now() > data.memberData.cooldowns.work + 24 * 60 * 60 * 1000) data.memberData.workStreak = 0;
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Eightball extends BaseCommand {
|
class Eightball extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Eightball extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Cat extends BaseCommand {
|
class Cat extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,14 +24,14 @@ class Cat extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Crab extends BaseCommand {
|
class Crab extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,14 +24,14 @@ class Crab extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Dog extends BaseCommand {
|
class Dog extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,14 +24,14 @@ class Dog extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class LMGTFY extends BaseCommand {
|
class LMGTFY extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -44,14 +44,14 @@ class LMGTFY extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Lovecalc extends BaseCommand {
|
class Lovecalc extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -43,14 +43,14 @@ class Lovecalc extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Number extends BaseCommand {
|
class Number extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,14 +24,14 @@ class Number extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -60,7 +60,7 @@ class Number extends BaseCommand {
|
||||||
const parsedNumber = parseInt(msg.content, 10);
|
const parsedNumber = parseInt(msg.content, 10);
|
||||||
|
|
||||||
if (parsedNumber === number) {
|
if (parsedNumber === number) {
|
||||||
const time = client.functions.convertTime(client, gameCreatedAt, false, false, data.guildData.language);
|
const time = client.functions.convertTime(client, gameCreatedAt, false, true, data.guildData.language);
|
||||||
interaction.channel.send({
|
interaction.channel.send({
|
||||||
content: interaction.translate("fun/number:GAME_STATS", {
|
content: interaction.translate("fun/number:GAME_STATS", {
|
||||||
winner: msg.author.toString(),
|
winner: msg.author.toString(),
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class TicTacToe extends BaseCommand {
|
class TicTacToe extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class TicTacToe extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Afk extends BaseCommand {
|
class Afk extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Afk extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class AvatarContext extends BaseCommand {
|
class AvatarContext extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
|
@ -19,14 +19,14 @@ class AvatarContext extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").UserContextMenuCommandInteraction} interaction
|
* @param {import("discord.js").UserContextMenuCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Avatar extends BaseCommand {
|
class Avatar extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -41,14 +41,14 @@ class Avatar extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Boosters extends BaseCommand {
|
class Boosters extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,7 +23,7 @@ class Boosters extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -112,7 +112,7 @@ class Boosters extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -141,7 +141,7 @@ class Boosters extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Array} boosters
|
* @param {Array} boosters
|
||||||
* @param {import("../../base/Guild")} guildData
|
* @param {import("../../base/Guild")} guildData
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Emoji extends BaseCommand {
|
class Emoji extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Emoji extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Help extends BaseCommand {
|
class Help extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,7 +33,7 @@ class Help extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -75,7 +75,7 @@ class Help extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -118,7 +118,7 @@ class Help extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").AutocompleteInteraction} interaction
|
* @param {import("discord.js").AutocompleteInteraction} interaction
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Minecraft extends BaseCommand {
|
class Minecraft extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Minecraft extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Ping extends BaseCommand {
|
class Ping extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Ping extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Remindme extends BaseCommand {
|
class Remindme extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -45,14 +45,14 @@ class Remindme extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Report extends BaseCommand {
|
class Report extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -43,14 +43,14 @@ class Report extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Serverinfo extends BaseCommand {
|
class Serverinfo extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Serverinfo extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Shorturl extends BaseCommand {
|
class Shorturl extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Shorturl extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Stats extends BaseCommand {
|
class Stats extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Stats extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -72,7 +72,7 @@ class Stats extends BaseCommand {
|
||||||
{
|
{
|
||||||
name: client.customEmojis.status.online + " " + interaction.translate("general/stats:ONLINE_TITLE"),
|
name: client.customEmojis.status.online + " " + interaction.translate("general/stats:ONLINE_TITLE"),
|
||||||
value: interaction.translate("general/stats:ONLINE_CONTENT", {
|
value: interaction.translate("general/stats:ONLINE_CONTENT", {
|
||||||
time: client.functions.convertTime(client, Date.now() + client.uptime, true, true, data?.guildData?.language),
|
time: client.functions.convertTime(client, Date.now() + client.uptime, true, false, data?.guildData?.language),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Suggest extends BaseCommand {
|
class Suggest extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Suggest extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Userinfo extends BaseCommand {
|
class Userinfo extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -32,14 +32,14 @@ class Userinfo extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Whois extends BaseCommand {
|
class Whois extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Whois extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Checkjar extends BaseCommand {
|
class Checkjar extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -25,14 +25,14 @@ class Checkjar extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Clear extends BaseCommand {
|
class Clear extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -52,14 +52,14 @@ class Clear extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Clearwarns extends BaseCommand {
|
class Clearwarns extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Clearwarns extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Giveaway extends BaseCommand {
|
class Giveaway extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -131,14 +131,14 @@ class Giveaway extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Poll extends BaseCommand {
|
class Poll extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Poll extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Unban extends BaseCommand {
|
class Unban extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Unban extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Ban extends BaseCommand {
|
class Ban extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -35,14 +35,14 @@ class Ban extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class WarnContext extends BaseCommand {
|
class WarnContext extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
|
@ -20,14 +20,14 @@ class WarnContext extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").UserContextMenuCommandInteraction} interaction
|
* @param {import("discord.js").UserContextMenuCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Warns extends BaseCommand {
|
class Warns extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Warns extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Back extends BaseCommand {
|
class Back extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Back extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Clips extends BaseCommand {
|
class Clips extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -36,14 +36,14 @@ class Clips extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -60,7 +60,6 @@ class Clips extends BaseCommand {
|
||||||
client.player.play(interaction.member.voice.channel, query, {
|
client.player.play(interaction.member.voice.channel, query, {
|
||||||
nodeOptions: {
|
nodeOptions: {
|
||||||
metadata: {
|
metadata: {
|
||||||
client,
|
|
||||||
channel: interaction.channel,
|
channel: interaction.channel,
|
||||||
requestedBy: interaction.user,
|
requestedBy: interaction.user,
|
||||||
},
|
},
|
||||||
|
@ -82,7 +81,7 @@ class Clips extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").AutocompleteInteraction} interaction
|
* @param {import("discord.js").AutocompleteInteraction} interaction
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Loop extends BaseCommand {
|
class Loop extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -40,14 +40,14 @@ class Loop extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Nowplaying extends BaseCommand {
|
class Nowplaying extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,7 +24,7 @@ class Nowplaying extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -161,6 +161,9 @@ class Nowplaying extends BaseCommand {
|
||||||
} else if (interaction.customId === "nowp_stop") {
|
} else if (interaction.customId === "nowp_stop") {
|
||||||
await interaction.deferUpdate();
|
await interaction.deferUpdate();
|
||||||
|
|
||||||
|
queue.delete();
|
||||||
|
await interaction.followUp({ content: interaction.translate("music/stop:SUCCESS") });
|
||||||
|
|
||||||
row1.components.forEach(component => {
|
row1.components.forEach(component => {
|
||||||
component.setDisabled(true);
|
component.setDisabled(true);
|
||||||
});
|
});
|
||||||
|
@ -178,7 +181,7 @@ class Nowplaying extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class PlayContext extends BaseCommand {
|
class PlayContext extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
|
@ -19,14 +19,14 @@ class PlayContext extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").MessageContextMenuCommandInteraction} interaction
|
* @param {import("discord.js").MessageContextMenuCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -49,7 +49,6 @@ class PlayContext extends BaseCommand {
|
||||||
const { queue } = await client.player.play(interaction.member.voice.channel, searchResult, {
|
const { queue } = await client.player.play(interaction.member.voice.channel, searchResult, {
|
||||||
nodeOptions: {
|
nodeOptions: {
|
||||||
metadata: {
|
metadata: {
|
||||||
client,
|
|
||||||
channel: interaction.channel,
|
channel: interaction.channel,
|
||||||
requestedBy: interaction.user,
|
requestedBy: interaction.user,
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Play extends BaseCommand {
|
class Play extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Play extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -64,7 +64,6 @@ class Play extends BaseCommand {
|
||||||
const { queue } = await client.player.play(interaction.member.voice.channel, searchResult, {
|
const { queue } = await client.player.play(interaction.member.voice.channel, searchResult, {
|
||||||
nodeOptions: {
|
nodeOptions: {
|
||||||
metadata: {
|
metadata: {
|
||||||
client,
|
|
||||||
channel: interaction.channel,
|
channel: interaction.channel,
|
||||||
requestedBy: interaction.user,
|
requestedBy: interaction.user,
|
||||||
},
|
},
|
||||||
|
@ -94,7 +93,7 @@ class Play extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").AutocompleteInteraction} interaction
|
* @param {import("discord.js").AutocompleteInteraction} interaction
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Queue extends BaseCommand {
|
class Queue extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,7 +23,7 @@ class Queue extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -116,7 +116,7 @@ class Queue extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -148,7 +148,7 @@ class Queue extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {import("discord-player").GuildQueue} queue
|
* @param {import("discord-player").GuildQueue} queue
|
||||||
* @returns
|
* @returns
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Seek extends BaseCommand {
|
class Seek extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -32,14 +32,14 @@ class Seek extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Shuffle extends BaseCommand {
|
class Shuffle extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Shuffle extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Skip extends BaseCommand {
|
class Skip extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Skip extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Skipto extends BaseCommand {
|
class Skipto extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Skipto extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Stop extends BaseCommand {
|
class Stop extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Stop extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Volume extends BaseCommand {
|
class Volume extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -34,14 +34,14 @@ class Volume extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -63,7 +63,7 @@ class Volume extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").AutocompleteInteraction} interaction
|
* @param {import("discord.js").AutocompleteInteraction} interaction
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class NSFW extends BaseCommand {
|
class NSFW extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -24,7 +24,7 @@ class NSFW extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -52,7 +52,7 @@ class NSFW extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Debug extends BaseCommand {
|
class Debug extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -115,14 +115,14 @@ class Debug extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Array} data
|
* @param {Array} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Eval extends BaseCommand {
|
class Eval extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -33,14 +33,14 @@ class Eval extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,7 @@ const BaseCommand = require("../../base/BaseCommand"),
|
||||||
class Reload extends BaseCommand {
|
class Reload extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -36,14 +36,14 @@ class Reload extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
@ -65,7 +65,7 @@ class Reload extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").AutocompleteInteraction} interaction
|
* @param {import("discord.js").AutocompleteInteraction} interaction
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Say extends BaseCommand {
|
class Say extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -51,14 +51,14 @@ class Say extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class Servers extends BaseCommand {
|
class Servers extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -23,14 +23,14 @@ class Servers extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class AddUser extends BaseCommand {
|
class AddUser extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -35,14 +35,14 @@ class AddUser extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class CloseTicket extends BaseCommand {
|
class CloseTicket extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -25,14 +25,14 @@ class CloseTicket extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class CreateTicketEmbed extends BaseCommand {
|
class CreateTicketEmbed extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -25,7 +25,7 @@ class CreateTicketEmbed extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad(client) {
|
async onLoad(client) {
|
||||||
client.on("interactionCreate", async interaction => {
|
client.on("interactionCreate", async interaction => {
|
||||||
|
@ -202,7 +202,7 @@ class CreateTicketEmbed extends BaseCommand {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ const BaseCommand = require("../../base/BaseCommand");
|
||||||
class RemoveUser extends BaseCommand {
|
class RemoveUser extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super({
|
super({
|
||||||
|
@ -35,14 +35,14 @@ class RemoveUser extends BaseCommand {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
//...
|
//...
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
* @param {import("discord.js").ChatInputCommandInteraction} interaction
|
||||||
* @param {Object} data
|
* @param {Object} data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -12,7 +12,7 @@ const locales = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
module.exports.load = async client => {
|
module.exports.load = async client => {
|
||||||
const commands = client.commands.map(v => {
|
const commands = client.commands.map(v => {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class CommandHandler extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
* @param {import("discord.js").BaseInteraction} interaction
|
* @param {import("discord.js").BaseInteraction} interaction
|
||||||
*/
|
*/
|
||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class guildBanAdd extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").GuildBan} ban
|
* @param {import("discord.js").GuildBan} ban
|
||||||
*/
|
*/
|
||||||
async execute(client, ban) {
|
async execute(client, ban) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class GuildCreate extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").Guild} guild
|
* @param {import("discord.js").Guild} guild
|
||||||
*/
|
*/
|
||||||
async execute(client, guild) {
|
async execute(client, guild) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class GuildDelete extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").Guild} guild
|
* @param {import("discord.js").Guild} guild
|
||||||
*/
|
*/
|
||||||
async execute(client, guild) {
|
async execute(client, guild) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ class GuildMemberAdd extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").GuildMember} member
|
* @param {import("discord.js").GuildMember} member
|
||||||
*/
|
*/
|
||||||
async execute(client, member) {
|
async execute(client, member) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ class GuildMemberRemove extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").GuildMember} member
|
* @param {import("discord.js").GuildMember} member
|
||||||
*/
|
*/
|
||||||
async execute(client, member) {
|
async execute(client, member) {
|
||||||
|
|
|
@ -10,7 +10,7 @@ class GuildMemberUpdate extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client
|
* @param {import("../../base/Client")} client
|
||||||
* @param {import("discord.js").GuildMember} oldMember
|
* @param {import("discord.js").GuildMember} oldMember
|
||||||
* @param {import("discord.js").GuildMember} newMember
|
* @param {import("discord.js").GuildMember} newMember
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -13,7 +13,7 @@ class MessageCreate extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
* @param {import("discord.js").Message} message
|
* @param {import("discord.js").Message} message
|
||||||
*/
|
*/
|
||||||
async execute(client, message) {
|
async execute(client, message) {
|
||||||
|
@ -120,7 +120,7 @@ class MessageCreate extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
* @param {import("discord.js").Message} msg
|
* @param {import("discord.js").Message} msg
|
||||||
* @param {import("../base/Member")} memberData
|
* @param {import("../base/Member")} memberData
|
||||||
* @returns
|
* @returns
|
||||||
|
|
|
@ -11,7 +11,7 @@ class messageDelete extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client The Discord Client
|
* @param {import("../../base/Client")} client The Discord Client
|
||||||
* @param {import("discord.js").Message} message The deleted message
|
* @param {import("discord.js").Message} message The deleted message
|
||||||
*/
|
*/
|
||||||
async execute(client, message) {
|
async execute(client, message) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class messageUpdate extends BaseEvent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../../base/JaBa")} client The Discord client
|
* @param {import("../../base/Client")} client The Discord client
|
||||||
* @param {import("discord.js").Message} oldMessage The message before the update
|
* @param {import("discord.js").Message} oldMessage The message before the update
|
||||||
* @param {import("discord.js").Message} newMessage The message after the update
|
* @param {import("discord.js").Message} newMessage The message after the update
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,7 +10,7 @@ class Ready extends BaseEvent {
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
async execute(client) {
|
async execute(client) {
|
||||||
const commands = [...new Map(client.commands.map(v => [v.constructor.name, v])).values()];
|
const commands = [...new Map(client.commands.map(v => [v.constructor.name, v])).values()];
|
||||||
|
|
|
@ -3,7 +3,7 @@ const table = require("markdown-table"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
module.exports.update = function (client) {
|
module.exports.update = function (client) {
|
||||||
const commands = [...new Map(client.commands.map(v => [v.constructor.name, v])).values()],
|
const commands = [...new Map(client.commands.map(v => [v.constructor.name, v])).values()],
|
||||||
|
|
|
@ -3,7 +3,7 @@ const { CronJob } = require("cron"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {import("../base/JaBa")} client
|
* @param {import("../base/Client")} client
|
||||||
*/
|
*/
|
||||||
module.exports.init = async function (client) {
|
module.exports.init = async function (client) {
|
||||||
const cronjob = new CronJob("0 5 * * *", async function () {
|
const cronjob = new CronJob("0 5 * * *", async function () {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue