Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xernerx

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xernerx - npm Package Compare versions

Comparing version 4.16.0 to 4.17.0

1

dist/build/XernerxContextCommand.d.ts

@@ -46,2 +46,3 @@ /** @format */

util: InteractionUtil;
snowflake: string | null;
constructor(id: string, options: ContextCommandOptions);

@@ -48,0 +49,0 @@ /**

@@ -37,3 +37,7 @@ /** @format */

user?: string[] | import("../main.js").PermissionNames[] | null | undefined;
client?: string[] | import("../main.js").PermissionNames[] | null | undefined;
client?: string[] | import("../main.js").PermissionNames[] | null | undefined; /**
* @description Checks for conditions before running the command
* @param message - The message event emitted on this command
* @param options - The args and flags parsed on this command
*/
dm?: boolean | undefined;

@@ -44,2 +48,3 @@ } | undefined;

readonly client: XernerxClientType;
snowflake: string | null;
util: MessageUtil;

@@ -46,0 +51,0 @@ constructor(id: string, options: MessageCommandOptions);

@@ -45,2 +45,3 @@ /** @format */

readonly client: XernerxClientType;
snowflake: string | null;
util: InteractionUtil;

@@ -47,0 +48,0 @@ constructor(id: string, options: SlashCommandOptions);

2

dist/tools/XernerxLog.d.ts

@@ -12,3 +12,3 @@ /** @format */

private readonly tableLog;
private readonly config;
private readonly format;
private readonly time;

@@ -15,0 +15,0 @@ private readonly ram;

@@ -15,2 +15,3 @@ /** @format */

this.warnLog = true;
this.format = ['ram', 'time'];
}

@@ -23,5 +24,5 @@ else {

this.tableLog = client.settings.log?.table;
this.config = client.settings.log?.config || ['ram', 'time'];
this.format = client.settings.log?.format || ['ram', 'time'];
}
const config = {
const format = {
name: this.blue(pkg.name),

@@ -43,9 +44,8 @@ node: this.green(process.version),

};
this.config;
process.on('message', (message) => {
if (message.type == 'xernerx')
config.shard = message?.data?.sharded ? `| ${message?.data?.shardId} |` : '';
format.shard = message?.data?.sharded ? `| ${message?.data?.shardId} |` : '';
});
this.base = (type, message) => `${type == 'info' ? `✔️ | ${this.purple('Xernerx')}` : type == `error` ? `❗ | ${this.red('Xernerx')}` : type == `update` ? `⬆️ | ${this.blue('Xernerx')}` : `⚠️ | ${this.yellow('Xernerx')}`} | ${this.config
?.map((c) => (typeof config[c] == 'function' ? config[c]() : config[c]) || null)
this.base = (type, message) => `${type == 'info' ? `✔️ | ${this.purple('Xernerx')}` : type == `error` ? `❗ | ${this.red('Xernerx')}` : type == `update` ? `⬆️ | ${this.blue('Xernerx')}` : `⚠️ | ${this.yellow('Xernerx')}`} | ${this.format
?.map((c) => (typeof format[c] == 'function' ? format[c]() : format[c]) || null)
.filter((x) => x)

@@ -52,0 +52,0 @@ .join(' | ')} | ${message}`;

@@ -10,2 +10,3 @@ /** @format */

member(member: string | XernerxMember): string;
command(id: string, name: string): string | null;
timestamp(timestamp?: number | Date, format?: 't' | 'T' | 'd' | 'D' | 'f' | 'F' | 'R'): string;

@@ -12,0 +13,0 @@ codeBlock(code: string, language: string): string;

@@ -28,2 +28,7 @@ /** @format */

}
command(id, name) {
if (typeof id !== 'string')
return null;
return `</${name}:${id}>`;
}
timestamp(timestamp = Date.now(), format = 'R') {

@@ -30,0 +35,0 @@ if (typeof timestamp == 'string')

@@ -38,3 +38,3 @@ /** @format */

table?: Array<'name' | 'aliases' | 'description' | 'filetype' | 'category'>;
config?: Array<'name' | 'node' | 'xernerx' | 'discordjs' | 'platform' | 'time' | 'date' | 'ram' | 'version' | 'author' | 'shard' | 'index'>;
format?: Array<'name' | 'node' | 'xernerx' | 'discordjs' | 'platform' | 'time' | 'date' | 'ram' | 'version' | 'author' | 'shard' | 'index'>;
};

@@ -41,0 +41,0 @@ cooldown?: {

@@ -14,3 +14,3 @@ /** @format */

private resolveCooldown;
resolveCommand(options: ResolveCommandOptions): XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand | Collection<string, XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand>;
resolveCommand(options: ResolveCommandOptions): Promise<XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand | Collection<string, XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand>>;
resolveChannel(query: string | Record<string, string>): Promise<import("discord.js").Channel | null>;

@@ -17,0 +17,0 @@ resolveGuild(query: string | Record<string, string>): Promise<import("discord.js").Guild | null>;

@@ -14,3 +14,4 @@ /** @format */

resolveCooldown() { }
resolveCommand(options) {
async resolveCommand(options) {
const interCommands = await this.client.application?.commands.fetch();
const commands = [], collection = new Collection();

@@ -23,3 +24,6 @@ if (options?.type == 'MessageCommand' || !options?.type)

commands.push(...this.client.commands.context);
commands.map(([name, command]) => collection.set(name, command));
commands.map(([name, command]) => {
command.snowflake = interCommands?.find((cmd) => command.name === cmd.name)?.id || null;
collection.set(name, command);
});
if (options?.name) {

@@ -26,0 +30,0 @@ return collection.get(options.name) || null;

{
"name": "xernerx",
"version": "4.16.0",
"version": "4.17.0",
"description": "A bot framework for discord.js.",

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

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