seyfert 1.3.0 → 1.3.1

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.
@@ -10,7 +10,19 @@ export declare const VOICE_STATE_UPDATE: (self: BaseClient, data: GatewayVoiceSt
10
10
  guildId?: string | undefined;
11
11
  channelId: string | null;
12
12
  userId: string;
13
- member?: import("discord-api-types/v10").APIGuildMember | undefined;
13
+ member?: {
14
+ user?: import("discord-api-types/v10").APIUser | undefined;
15
+ nick?: string | null | undefined;
16
+ avatar?: string | null | undefined;
17
+ roles?: string[] | undefined;
18
+ joinedAt?: string | undefined;
19
+ premiumSince?: string | null | undefined;
20
+ deaf?: boolean | undefined;
21
+ mute?: boolean | undefined;
22
+ flags?: import("discord-api-types/v10").GuildMemberFlags | undefined;
23
+ pending?: boolean | undefined;
24
+ communicationDisabledUntil?: string | null | undefined;
25
+ } | undefined;
14
26
  sessionId: string;
15
27
  deaf: boolean;
16
28
  mute: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { APIAutoModerationRule, RESTPatchAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleJSONBody } from 'discord-api-types/v10';
2
2
  import type { UsingClient } from '../commands';
3
- import type { MethodContext, ObjectToLower } from '../common';
3
+ import { type MethodContext, type ObjectToLower } from '../common';
4
4
  import { DiscordBase } from './extra/DiscordBase';
5
5
  export interface AutoModerationRule extends ObjectToLower<APIAutoModerationRule> {
6
6
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AutoModerationRule = void 0;
4
+ const common_1 = require("../common");
4
5
  const DiscordBase_1 = require("./extra/DiscordBase");
5
6
  class AutoModerationRule extends DiscordBase_1.DiscordBase {
6
7
  constructor(client, data) {
@@ -27,7 +28,7 @@ class AutoModerationRule extends DiscordBase_1.DiscordBase {
27
28
  create: (body) => client.guilds.moderation.create(guildId, body),
28
29
  delete: (ruleId, reason) => client.guilds.moderation.delete(guildId, ruleId, reason),
29
30
  fetch: (ruleId) => client.guilds.moderation.fetch(guildId, ruleId),
30
- edit: (ruleId, body, reason) => client.guilds.moderation.edit(guildId, ruleId, body, reason),
31
+ edit: (ruleId, body, reason) => client.guilds.moderation.edit(guildId, ruleId, (0, common_1.toCamelCase)(body), reason),
31
32
  };
32
33
  }
33
34
  }
@@ -32,7 +32,7 @@ export declare class BaseInteraction<FromGuild extends boolean = boolean, Type e
32
32
  private matchReplied;
33
33
  reply(body: ReplyInteractionBody): Promise<void>;
34
34
  deferReply(flags?: MessageFlags): Promise<void>;
35
- static from(client: UsingClient, gateway: GatewayInteractionCreateDispatchData, __reply?: __InternalReplyFunction): StringSelectMenuInteraction<string[]> | AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/v10").APIPingInteraction>;
35
+ static from(client: UsingClient, gateway: GatewayInteractionCreateDispatchData, __reply?: __InternalReplyFunction): RoleSelectMenuInteraction | UserSelectMenuInteraction | MentionableSelectMenuInteraction | ChannelSelectMenuInteraction | StringSelectMenuInteraction<string[]> | AutocompleteInteraction<boolean> | ChatInputCommandInteraction<boolean> | UserCommandInteraction<boolean> | MessageCommandInteraction<boolean> | ButtonInteraction | ModalSubmitInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/v10").APIPingInteraction>;
36
36
  fetchGuild(force?: boolean): Promise<import("./Guild").Guild<"cached"> | import("./Guild").Guild<"api">> | undefined;
37
37
  }
38
38
  export type AllInteractions = AutocompleteInteraction | ChatInputCommandInteraction | UserCommandInteraction | MessageCommandInteraction | ComponentInteraction | SelectMenuInteraction | ModalSubmitInteraction | BaseInteraction;
@@ -74,7 +74,7 @@ class Shard {
74
74
  async send(force, message) {
75
75
  this.debugger?.info(`[Shard #${this.id}] Sending: ${v10_1.GatewayOpcodes[message.op]} ${JSON.stringify(message.d, (_, value) => {
76
76
  if (typeof value === 'string')
77
- return value.replace(this.options.token, v => {
77
+ return value.replaceAll(this.options.token, v => {
78
78
  const split = v.split('.');
79
79
  return `${split[0]}.${'*'.repeat(split[1].length)}.${'*'.repeat(split[2].length)}`;
80
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",