seyfert 2.1.1-dev-11872411050.0 → 2.1.1-dev-11882714714.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.
|
|
@@ -4,6 +4,7 @@ import type { ReturnCache } from '../index';
|
|
|
4
4
|
import { GuildRelatedResource } from './default/guild-related';
|
|
5
5
|
export declare class Channels extends GuildRelatedResource<any, APIChannel> {
|
|
6
6
|
namespace: string;
|
|
7
|
+
filter(data: APIChannel, id: string, guild_id: string): boolean;
|
|
7
8
|
parse(data: APIChannel, id: string, guild_id: string): any;
|
|
8
9
|
get(id: string): ReturnCache<AllChannels | undefined>;
|
|
9
10
|
raw(id: string): ReturnCache<Omit<APIChannel, 'permission_overwrites'> | undefined>;
|
|
@@ -6,6 +6,10 @@ const structures_1 = require("../../structures");
|
|
|
6
6
|
const guild_related_1 = require("./default/guild-related");
|
|
7
7
|
class Channels extends guild_related_1.GuildRelatedResource {
|
|
8
8
|
namespace = 'channel';
|
|
9
|
+
//@ts-expect-error
|
|
10
|
+
filter(data, id, guild_id) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
9
13
|
parse(data, id, guild_id) {
|
|
10
14
|
const { permission_overwrites, ...rest } = super.parse(data, id, guild_id);
|
|
11
15
|
return rest;
|