seyfert 2.1.1-dev-11872411050.0 → 2.1.1-dev-11874638750.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.
|
@@ -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;
|