xernerx 4.9.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ export default class XernerxContextCommand {
13
13
  readonly info: string | null | undefined;
14
14
  readonly category: string | null | undefined;
15
15
  readonly cooldown: number | null | undefined;
16
- readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
16
+ readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildMedia" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
17
17
  readonly global: boolean | undefined;
18
18
  readonly ignore: {
19
19
  owner?: boolean | undefined;
@@ -16,7 +16,7 @@ export default class XernerxMessageCommand {
16
16
  readonly flags: import("../main.js").MessageCommandFlagOptions[] | undefined;
17
17
  readonly category: string | null | undefined;
18
18
  readonly cooldown: number | null | undefined;
19
- readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
19
+ readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildMedia" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
20
20
  readonly global: boolean | undefined;
21
21
  readonly ignore: {
22
22
  owner?: boolean | undefined;
@@ -13,7 +13,7 @@ export default class XernerxSlashCommand {
13
13
  readonly info: string | null | undefined;
14
14
  readonly category: string | null | undefined;
15
15
  readonly cooldown: number | null | undefined;
16
- readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
16
+ readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildMedia" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
17
17
  readonly global: boolean | undefined;
18
18
  readonly ignore: {
19
19
  owner?: boolean | undefined;
@@ -1,3 +1,4 @@
1
1
  /** @format */
2
+ /// <reference types="node" resolution-mode="require"/>
2
3
  import { MessagePayload } from 'discord.js';
3
- export default function sendWebhook(url: URL, body: MessagePayload): Promise<any>;
4
+ export default function sendWebhook(url: URL, body: MessagePayload): Promise<unknown>;
@@ -1,10 +1,12 @@
1
1
  /** @format */
2
+ import { ActivityType } from 'discord.js';
3
+ import { Style } from 'dumfunctions';
2
4
  export default function setPresence(client, options) {
3
5
  const presence = () => client.user?.setPresence({
4
6
  activities: [
5
7
  {
6
8
  name: options.text,
7
- type: options.type,
9
+ type: ActivityType[Style.titleCase(options.type || 'Custom')],
8
10
  url: options.url,
9
11
  },
10
12
  ],
@@ -233,7 +233,7 @@ export interface XernerxInhibitorOptions {
233
233
  }
234
234
  export interface PresenceOptions {
235
235
  text: string;
236
- type?: ActivityType.Playing | ActivityType.Streaming | ActivityType.Listening | ActivityType.Watching | ActivityType.Competing;
236
+ type?: keyof typeof ActivityType;
237
237
  url: string;
238
238
  status?: PresenceStatusData;
239
239
  interval?: number;
@@ -1,4 +1,5 @@
1
1
  /** @format */
2
+ /// <reference types="node" resolution-mode="require"/>
2
3
  import { EmbedBuilder, MessageEditOptions, MessagePayload, MessageReplyOptions, User } from 'discord.js';
3
4
  import XernerxClient from '../client/XernerxClient.js';
4
5
  import { XernerxMessage } from '../types/extenders.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "4.9.0",
3
+ "version": "4.11.0",
4
4
  "description": "A bot framework for discord.js.",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -41,10 +41,10 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "dbl-sdk": "1.2.0",
44
- "discord.js": "14.13.0",
44
+ "discord.js": "^14.14.1",
45
45
  "dumfunctions": "2.1.2",
46
46
  "xernerx-extension-builder": "0.0.16",
47
- "zod": "3.22.2"
47
+ "zod": "^3.22.4"
48
48
  },
49
49
  "devDependencies": {
50
50
  "prettier": "3.0.0",