seyfert 2.1.1-dev-11882714714.0 → 2.1.1-dev-11882952397.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.
@@ -1,5 +1,5 @@
1
1
  import type { CommandContext, Message } from '..';
2
- import { type Awaitable, type DeepPartial, type If } from '../common';
2
+ import { type Awaitable, type DeepPartial, type If, type MakePartial } from '../common';
3
3
  import { EventHandler } from '../events';
4
4
  import type { GatewayDispatchPayload, GatewayPresenceUpdateData } from '../types';
5
5
  import { ShardManager, type ShardManagerOptions } from '../websocket';
@@ -49,7 +49,5 @@ export interface ClientOptions extends BaseClientOptions {
49
49
  reply?: (ctx: CommandContext) => boolean;
50
50
  };
51
51
  handlePayload?: ShardManagerOptions['handlePayload'];
52
- resharding?: Omit<NonNullable<ShardManagerOptions['resharding']>, 'getInfo'> & {
53
- getInfo?: NonNullable<ShardManagerOptions['resharding']>['getInfo'];
54
- };
52
+ resharding?: MakePartial<NonNullable<ShardManagerOptions['resharding']>, 'getInfo'>;
55
53
  }
@@ -8,7 +8,7 @@ class HttpClient extends base_1.BaseClient {
8
8
  }
9
9
  async start(options = {}) {
10
10
  await super.start(options);
11
- return this.execute(options.httpConnection ?? {});
11
+ return this.execute(options.httpConnection);
12
12
  }
13
13
  }
14
14
  exports.HttpClient = HttpClient;
@@ -1,5 +1,6 @@
1
1
  import type { UsingClient } from '../commands';
2
+ import type { Awaitable } from '../common';
2
3
  export interface HttpServerAdapter {
3
4
  client: UsingClient;
4
- start?(path: `/${string}`): any;
5
+ start?(path: `/${string}`): Awaitable<unknown>;
5
6
  }
@@ -130,7 +130,7 @@ class OptionResolver {
130
130
  }
131
131
  const channel = resolved.channels?.[value];
132
132
  if (channel) {
133
- resolve.channel = 'fetch' in channel ? channel : (0, structures_1.channelFrom)(channel, this.client);
133
+ resolve.channel = (0, structures_1.channelFrom)(channel, this.client);
134
134
  }
135
135
  const role = resolved.roles?.[value];
136
136
  if (role) {
@@ -42,11 +42,6 @@ export type IsStrictlyUndefined<T> = AuxIsStrictlyUndefined<T> extends true ? tr
42
42
  export type If<T extends boolean, A, B = null> = T extends true ? A : B extends null ? A | null : B;
43
43
  export type NulleableCoalising<A, B> = NonFalsy<A> extends never ? B : A;
44
44
  export type TupleOr<A, T> = ValueOf<A> extends never ? A : TupleOr<ArrayFirsElement<T>, Tail<T>>;
45
- export type PickPartial<T, K extends keyof T> = {
46
- [P in keyof T]?: T[P] | undefined;
47
- } & {
48
- [P in K]: T[P];
49
- };
50
45
  export type MakeRequired<T, K extends keyof T = keyof T> = T & {
51
46
  [P in K]-?: NonFalsy<T[P]>;
52
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.1.1-dev-11882714714.0",
3
+ "version": "2.1.1-dev-11882952397.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",