Socket
Socket
Sign inDemoInstall

@notenoughupdates/discord-akairo

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@notenoughupdates/discord-akairo - npm Package Compare versions

Comparing version 9.0.10-dev.1640400856.2c63321 to 9.0.10-dev.1640462480.67bad80

2

dist/package.json
{
"name": "@notenoughupdates/discord-akairo",
"version": "9.0.10-dev.1640400856.2c63321",
"version": "9.0.10-dev.1640462480.67bad80",
"description": "A highly customizable bot framework for Discord.js.",

@@ -5,0 +5,0 @@ "main": "./dist/src/index.js",

@@ -38,3 +38,3 @@ import { Awaitable, Client, ClientOptions, Snowflake, UserResolvable } from "discord.js";

declare type Event = AkairoClientEvents;
export default interface AkairoClient {
export default interface AkairoClient<Ready extends boolean = boolean> extends Client<Ready> {
on<K extends keyof Event>(event: K, listener: (...args: Event[K]) => Awaitable<void>): this;

@@ -41,0 +41,0 @@ on<S extends string | symbol>(event: Exclude<S, keyof Event>, listener: (...args: any[]) => Awaitable<void>): this;

@@ -210,3 +210,3 @@ import { ApplicationCommandAutocompleteOption, ApplicationCommandChannelOptionData, ApplicationCommandChoicesData, ApplicationCommandNonOptionsData, ApplicationCommandNumericOptionData, ApplicationCommandPermissionData, ApplicationCommandSubCommandData, ApplicationCommandSubGroupData, AutocompleteInteraction, Guild, Message, PermissionResolvable, Snowflake } from "discord.js";

}
export default interface Command {
export default interface Command extends AkairoModule {
/**

@@ -213,0 +213,0 @@ * Reloads the command.

@@ -344,3 +344,3 @@ /// <reference types="node" />

declare type Events = CommandHandlerEventsType;
export default interface CommandHandler {
export default interface CommandHandler extends AkairoHandler {
/**

@@ -347,0 +347,0 @@ * Loads a command.

@@ -57,3 +57,3 @@ import type { ContextMenuInteraction, Snowflake } from "discord.js";

}
export default interface ContextMenuCommand {
export default interface ContextMenuCommand extends AkairoModule {
/**

@@ -60,0 +60,0 @@ * Reloads the context menu command.

@@ -60,3 +60,3 @@ import type { Awaitable, Collection, ContextMenuInteraction } from "discord.js";

declare type Events = ContextMenuCommandHandlerEvents;
export default interface ContextMenuCommandHandler {
export default interface ContextMenuCommandHandler extends AkairoHandler {
/**

@@ -63,0 +63,0 @@ * Deregisters a module.

@@ -59,3 +59,3 @@ import type { Message } from "discord.js";

}
export default interface Inhibitor {
export default interface Inhibitor extends AkairoModule {
/**

@@ -62,0 +62,0 @@ * Reloads the inhibitor.

@@ -48,3 +48,3 @@ import type { Awaitable, Collection, Message } from "discord.js";

declare type Events = InhibitorHandlerEvents;
export default interface InhibitorHandler {
export default interface InhibitorHandler extends AkairoHandler {
/**

@@ -51,0 +51,0 @@ * Deregisters an inhibitor.

@@ -50,3 +50,3 @@ /// <reference types="node" />

}
export default interface Listener {
export default interface Listener extends AkairoModule {
/**

@@ -53,0 +53,0 @@ * Reloads the listener.

@@ -71,3 +71,3 @@ /// <reference types="node" />

declare type Events = ListenerHandlerEvents;
export default interface ListenerHandler {
export default interface ListenerHandler extends AkairoHandler {
/**

@@ -74,0 +74,0 @@ * Finds a category by name.

@@ -44,3 +44,3 @@ import type Category from "../../util/Category.js";

}
export default interface Task {
export default interface Task extends AkairoModule {
/**

@@ -47,0 +47,0 @@ * Reloads the task.

@@ -42,3 +42,3 @@ import type { Awaitable, Collection } from "discord.js";

declare type Events = TaskHandlerEvents;
export default interface TaskHandler {
export default interface TaskHandler extends AkairoHandler {
/**

@@ -45,0 +45,0 @@ * Deregisters a task.

@@ -53,3 +53,3 @@ /// <reference types="node" />

*/
static deepEquals(a: any, b: any): boolean;
static deepEquals<T>(a: unknown, b: T): a is T;
/**

@@ -56,0 +56,0 @@ * Converts a string in snake_case to camelCase.

@@ -95,8 +95,2 @@ "use strict";

}
/**
* Compares each property of two objects to determine if they are equal.
* @param a - First value.
* @param b - Second value.
* @returns Whether the two values are equal.
*/
static deepEquals(a, b) {

@@ -103,0 +97,0 @@ if (a === b)

{
"name": "@notenoughupdates/discord-akairo",
"version": "9.0.10-dev.1640400856.2c63321",
"version": "9.0.10-dev.1640462480.67bad80",
"description": "A highly customizable bot framework for Discord.js.",

@@ -5,0 +5,0 @@ "main": "./dist/src/index.js",

@@ -63,3 +63,3 @@ import { Awaitable, Client, ClientOptions, Snowflake, UserResolvable } from "discord.js";

export default interface AkairoClient {
export default interface AkairoClient<Ready extends boolean = boolean> extends Client<Ready> {
on<K extends keyof Event>(event: K, listener: (...args: Event[K]) => Awaitable<void>): this;

@@ -66,0 +66,0 @@ on<S extends string | symbol>(event: Exclude<S, keyof Event>, listener: (...args: any[]) => Awaitable<void>): this;

@@ -370,3 +370,3 @@ /* eslint-disable func-names, @typescript-eslint/no-unused-vars */

export default interface Command {
export default interface Command extends AkairoModule {
/**

@@ -373,0 +373,0 @@ * Reloads the command.

@@ -1528,3 +1528,3 @@ import {

export default interface CommandHandler {
export default interface CommandHandler extends AkairoHandler {
/**

@@ -1531,0 +1531,0 @@ * Loads a command.

@@ -82,3 +82,3 @@ /* eslint-disable func-names, @typescript-eslint/no-unused-vars */

export default interface ContextMenuCommand {
export default interface ContextMenuCommand extends AkairoModule {
/**

@@ -85,0 +85,0 @@ * Reloads the context menu command.

@@ -135,3 +135,3 @@ import type { Awaitable, Collection, ContextMenuInteraction } from "discord.js";

export default interface ContextMenuCommandHandler {
export default interface ContextMenuCommandHandler extends AkairoHandler {
/**

@@ -138,0 +138,0 @@ * Deregisters a module.

@@ -83,3 +83,3 @@ /* eslint-disable @typescript-eslint/no-unused-vars */

export default interface Inhibitor {
export default interface Inhibitor extends AkairoModule {
/**

@@ -86,0 +86,0 @@ * Reloads the inhibitor.

@@ -101,3 +101,3 @@ import type { Awaitable, Collection, Message } from "discord.js";

export default interface InhibitorHandler {
export default interface InhibitorHandler extends AkairoHandler {
/**

@@ -104,0 +104,0 @@ * Deregisters an inhibitor.

@@ -70,3 +70,3 @@ /* eslint-disable func-names, @typescript-eslint/no-unused-vars */

export default interface Listener {
export default interface Listener extends AkairoModule {
/**

@@ -73,0 +73,0 @@ * Reloads the listener.

@@ -139,3 +139,3 @@ import { Awaitable, Collection } from "discord.js";

export default interface ListenerHandler {
export default interface ListenerHandler extends AkairoHandler {
/**

@@ -142,0 +142,0 @@ * Finds a category by name.

@@ -63,3 +63,3 @@ /* eslint-disable func-names, @typescript-eslint/no-unused-vars */

export default interface Task {
export default interface Task extends AkairoModule {
/**

@@ -66,0 +66,0 @@ * Reloads the task.

@@ -78,3 +78,3 @@ import type { Awaitable, Collection } from "discord.js";

export default interface TaskHandler {
export default interface TaskHandler extends AkairoHandler {
/**

@@ -81,0 +81,0 @@ * Deregisters a task.

@@ -110,2 +110,3 @@ /* eslint-disable @typescript-eslint/ban-types */

*/
public static deepEquals<T>(a: unknown, b: T): a is T;
public static deepEquals(a: any, b: any): boolean {

@@ -112,0 +113,0 @@ if (a === b) return true;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc