seyfert 2.1.1-dev-11874638750.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.
|
@@ -78,7 +78,7 @@ export declare class AttachmentBuilder {
|
|
|
78
78
|
* @param resolve - The attachment or attachment data to resolve.
|
|
79
79
|
* @returns The resolved REST API attachment.
|
|
80
80
|
*/
|
|
81
|
-
export declare function resolveAttachment(resolve: Attachment | AttachmentData | RESTAPIAttachment): Omit<RESTAPIAttachment, 'id'>;
|
|
81
|
+
export declare function resolveAttachment(resolve: Attachment | AttachmentBuilder | AttachmentData | RESTAPIAttachment): Omit<RESTAPIAttachment, 'id'>;
|
|
82
82
|
/**
|
|
83
83
|
* Resolves a list of attachments to raw files.
|
|
84
84
|
* @param resources - The list of attachments to resolve.
|
package/lib/client/client.d.ts
CHANGED
|
@@ -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?:
|
|
53
|
-
getInfo?: NonNullable<ShardManagerOptions['resharding']>['getInfo'];
|
|
54
|
-
};
|
|
52
|
+
resharding?: MakePartial<NonNullable<ShardManagerOptions['resharding']>, 'getInfo'>;
|
|
55
53
|
}
|
package/lib/client/httpclient.js
CHANGED
package/lib/client/types.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ class OptionResolver {
|
|
|
130
130
|
}
|
|
131
131
|
const channel = resolved.channels?.[value];
|
|
132
132
|
if (channel) {
|
|
133
|
-
resolve.channel =
|
|
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
|
};
|