@magicyan/discord 1.0.29 → 1.0.30

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.
@@ -6,53 +6,53 @@ function findChannel(guild, type) {
6
6
  const channelType = type ?? discord_js.ChannelType.GuildText;
7
7
  const cache = guild.channels.cache;
8
8
  return {
9
- byName(name, filter = () => true) {
9
+ byId(id) {
10
10
  return cache.find(
11
- (c) => c.name === name && c.type === channelType && filter
11
+ (c) => c.id === id && c.type === channelType
12
12
  );
13
13
  },
14
- byId(id) {
14
+ byName(name, and = () => true) {
15
15
  return cache.find(
16
- (c) => c.id === id && c.type === channelType
16
+ (c) => c.name === name && c.type === channelType && and(c)
17
17
  );
18
18
  },
19
19
  byFilter(filter) {
20
- return cache.find((c) => c.type == type && filter);
20
+ return cache.find((c) => c.type == type && filter(c));
21
21
  },
22
22
  inCategoryId(id) {
23
23
  return {
24
- byName(name, filter = () => true) {
24
+ byId(id2) {
25
25
  return cache.find(
26
- (c) => c.name === name && c.type === channelType && c.parentId == id && filter
26
+ (c) => c.id === id2 && c.type === channelType && c.parentId == id2
27
27
  );
28
28
  },
29
- byId(id2, filter = () => true) {
29
+ byName(name, and = () => true) {
30
30
  return cache.find(
31
- (c) => c.id === id2 && c.type === channelType && c.parentId == id2 && filter
31
+ (c) => c.name === name && c.type === channelType && c.parentId == id && and(c)
32
32
  );
33
33
  },
34
34
  byFilter(filter) {
35
35
  return cache.find(
36
- (c) => c.type === channelType && c.parent?.id == id && filter
36
+ (c) => c.type === channelType && c.parent?.id == id && filter(c)
37
37
  );
38
38
  }
39
39
  };
40
40
  },
41
41
  inCategoryName(name) {
42
42
  return {
43
- byName(name2, filter = () => true) {
43
+ byId(id) {
44
44
  return cache.find(
45
- (c) => c.name === name2 && c.type === channelType && c.parent?.name == name2 && filter
45
+ (c) => c.id === id && c.type === channelType && c.parent?.name == name
46
46
  );
47
47
  },
48
- byId(id, filter = () => true) {
48
+ byName(name2, and = () => true) {
49
49
  return cache.find(
50
- (c) => c.id === id && c.type === channelType && c.parent?.name == name && filter
50
+ (c) => c.name === name2 && c.type === channelType && c.parent?.name == name2 && and(c)
51
51
  );
52
52
  },
53
53
  byFilter(filter) {
54
54
  return cache.find(
55
- (c) => c.type === channelType && c.parent?.name == name && filter
55
+ (c) => c.type === channelType && c.parent?.name == name && filter(c)
56
56
  );
57
57
  }
58
58
  };
@@ -4,53 +4,53 @@ function findChannel(guild, type) {
4
4
  const channelType = type ?? ChannelType.GuildText;
5
5
  const cache = guild.channels.cache;
6
6
  return {
7
- byName(name, filter = () => true) {
7
+ byId(id) {
8
8
  return cache.find(
9
- (c) => c.name === name && c.type === channelType && filter
9
+ (c) => c.id === id && c.type === channelType
10
10
  );
11
11
  },
12
- byId(id) {
12
+ byName(name, and = () => true) {
13
13
  return cache.find(
14
- (c) => c.id === id && c.type === channelType
14
+ (c) => c.name === name && c.type === channelType && and(c)
15
15
  );
16
16
  },
17
17
  byFilter(filter) {
18
- return cache.find((c) => c.type == type && filter);
18
+ return cache.find((c) => c.type == type && filter(c));
19
19
  },
20
20
  inCategoryId(id) {
21
21
  return {
22
- byName(name, filter = () => true) {
22
+ byId(id2) {
23
23
  return cache.find(
24
- (c) => c.name === name && c.type === channelType && c.parentId == id && filter
24
+ (c) => c.id === id2 && c.type === channelType && c.parentId == id2
25
25
  );
26
26
  },
27
- byId(id2, filter = () => true) {
27
+ byName(name, and = () => true) {
28
28
  return cache.find(
29
- (c) => c.id === id2 && c.type === channelType && c.parentId == id2 && filter
29
+ (c) => c.name === name && c.type === channelType && c.parentId == id && and(c)
30
30
  );
31
31
  },
32
32
  byFilter(filter) {
33
33
  return cache.find(
34
- (c) => c.type === channelType && c.parent?.id == id && filter
34
+ (c) => c.type === channelType && c.parent?.id == id && filter(c)
35
35
  );
36
36
  }
37
37
  };
38
38
  },
39
39
  inCategoryName(name) {
40
40
  return {
41
- byName(name2, filter = () => true) {
41
+ byId(id) {
42
42
  return cache.find(
43
- (c) => c.name === name2 && c.type === channelType && c.parent?.name == name2 && filter
43
+ (c) => c.id === id && c.type === channelType && c.parent?.name == name
44
44
  );
45
45
  },
46
- byId(id, filter = () => true) {
46
+ byName(name2, and = () => true) {
47
47
  return cache.find(
48
- (c) => c.id === id && c.type === channelType && c.parent?.name == name && filter
48
+ (c) => c.name === name2 && c.type === channelType && c.parent?.name == name2 && and(c)
49
49
  );
50
50
  },
51
51
  byFilter(filter) {
52
52
  return cache.find(
53
- (c) => c.type === channelType && c.parent?.name == name && filter
53
+ (c) => c.type === channelType && c.parent?.name == name && filter(c)
54
54
  );
55
55
  }
56
56
  };
@@ -51,20 +51,6 @@ class EmbedPlusBuilder extends discord_js.EmbedBuilder {
51
51
  toArray() {
52
52
  return Array.from([this]);
53
53
  }
54
- /**
55
- *
56
- * @param data
57
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
58
- * @returns AttachmentBuilder
59
- *
60
- * Create a json attachment file from this embed
61
- */
62
- toAttachment(data, space = 2) {
63
- return new discord_js.AttachmentBuilder(
64
- Buffer.from(this.toString(space), "utf-8"),
65
- data ?? (data = { name: "embed.json" })
66
- );
67
- }
68
54
  toString(space = 2) {
69
55
  return JSON.stringify(this, null, space);
70
56
  }
@@ -1,4 +1,4 @@
1
- import { EmbedBuilder, AttachmentBuilder } from 'discord.js';
1
+ import { EmbedBuilder } from 'discord.js';
2
2
  import { chars } from '../../constants/chars.mjs';
3
3
  import { createEmbedAsset } from './assets.mjs';
4
4
  import { EmbedPlusFields } from './fields.mjs';
@@ -49,20 +49,6 @@ class EmbedPlusBuilder extends EmbedBuilder {
49
49
  toArray() {
50
50
  return Array.from([this]);
51
51
  }
52
- /**
53
- *
54
- * @param data
55
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
56
- * @returns AttachmentBuilder
57
- *
58
- * Create a json attachment file from this embed
59
- */
60
- toAttachment(data, space = 2) {
61
- return new AttachmentBuilder(
62
- Buffer.from(this.toString(space), "utf-8"),
63
- data ?? (data = { name: "embed.json" })
64
- );
65
- }
66
52
  toString(space = 2) {
67
53
  return JSON.stringify(this, null, space);
68
54
  }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { GatewayIntentBits, Partials, Attachment, AttachmentBuilder, EmbedAssetData, Guild, GuildMember, User, ImageURLOptions, EmbedFooterData, APIEmbed, Embed, EmbedData, EmbedBuilder, AttachmentData, ColorResolvable, AnyComponentBuilder, ActionRowBuilder, ButtonBuilder, LinkButtonComponentData, ChannelType, CommandInteractionOption, Client, ApplicationCommand, TextInputBuilder, ModalSubmitFields, Collection, TextInputComponent, TextInputComponentData, GuildEmoji, GuildTextBasedChannel, Message, Role } from 'discord.js';
2
+ import { GatewayIntentBits, Partials, Attachment, AttachmentBuilder, EmbedAssetData, Guild, GuildMember, User, ClientUser, ImageURLOptions, EmbedFooterData, APIEmbed, Embed, EmbedData, EmbedBuilder, ColorResolvable, AnyComponentBuilder, ActionRowBuilder, ButtonBuilder, LinkButtonComponentData, ChannelType, CommandInteractionOption, Client, ApplicationCommand, TextInputBuilder, ModalSubmitFields, Collection, TextInputComponent, TextInputComponentData, GuildEmoji, GuildTextBasedChannel, Message, Role } from 'discord.js';
3
3
  export * from '@magicyan/core';
4
4
 
5
5
  declare const chars: {
@@ -23,21 +23,27 @@ type EmbedAssetOptions = Omit<EmbedAssetData, "url">;
23
23
  declare function createEmbedAsset(source: EmbedPlusAssetData, options?: EmbedAssetOptions): EmbedAssetData | undefined;
24
24
 
25
25
  interface MemberAuthor {
26
+ type: GuildMember;
26
27
  property?: "username" | "displayName" | "id" | "globalName" | "nickname";
27
28
  }
28
29
  interface UserAuthor {
30
+ type: User | ClientUser;
29
31
  property?: "username" | "displayName" | "id" | "globalName";
30
32
  }
31
33
  interface GuildAuthor {
34
+ type: Guild;
32
35
  property?: "name" | "id";
33
36
  }
34
- type AuthorType = Guild | GuildMember | User;
37
+ type AuthorOption = MemberAuthor | UserAuthor | GuildAuthor;
38
+ type AuthorType = Guild | GuildMember | User | ClientUser;
35
39
  type CreateEmbedAuthorOptions<T extends AuthorType> = {
36
40
  iconURL?: string;
37
41
  url?: string | null;
38
42
  prefix?: string;
39
43
  suffix?: string;
40
- } & ImageURLOptions & (T extends User ? UserAuthor : T extends GuildMember ? MemberAuthor : T extends Guild ? GuildAuthor : never);
44
+ } & ImageURLOptions & Omit<Extract<AuthorOption, {
45
+ type: T;
46
+ }>, "type">;
41
47
  declare function createEmbedAuthor<T extends AuthorType>(type: T, options?: CreateEmbedAuthorOptions<T>): {
42
48
  name: string;
43
49
  url: string | undefined;
@@ -125,15 +131,6 @@ declare class EmbedPlusBuilder extends EmbedBuilder {
125
131
  update(data: EmbedPlusData): this;
126
132
  has(property: keyof EmbedPlusData): boolean;
127
133
  toArray(): EmbedPlusBuilder[];
128
- /**
129
- *
130
- * @param data
131
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
132
- * @returns AttachmentBuilder
133
- *
134
- * Create a json attachment file from this embed
135
- */
136
- toAttachment(data?: AttachmentData, space?: number): AttachmentBuilder;
137
134
  toString(space?: number): string;
138
135
  setBorderColor(color: EmbedPlusColorData | null): this;
139
136
  setAsset(asset: "thumbnail" | "image", source: EmbedPlusAssetData): this;
@@ -159,17 +156,17 @@ type GetChannelType<Type extends GuildChannelType> = Extract<NonNullable<Command
159
156
  type: Type extends ChannelType.PublicThread | ChannelType.AnnouncementThread ? ChannelType.PublicThread | ChannelType.AnnouncementThread : Type;
160
157
  }>;
161
158
  declare function findChannel<Type extends GuildChannelType = ChannelType.GuildText>(guild: Guild, type?: Type): {
162
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
163
159
  byId(id: string): GetChannelType<Type> | undefined;
160
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
164
161
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
165
162
  inCategoryId(id: string): {
166
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
167
- byId(id: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
163
+ byId(id: string): GetChannelType<Type> | undefined;
164
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
168
165
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
169
166
  };
170
167
  inCategoryName(name: string): {
171
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
172
- byId(id: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
168
+ byId(id: string): GetChannelType<Type> | undefined;
169
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
173
170
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
174
171
  };
175
172
  };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { GatewayIntentBits, Partials, Attachment, AttachmentBuilder, EmbedAssetData, Guild, GuildMember, User, ImageURLOptions, EmbedFooterData, APIEmbed, Embed, EmbedData, EmbedBuilder, AttachmentData, ColorResolvable, AnyComponentBuilder, ActionRowBuilder, ButtonBuilder, LinkButtonComponentData, ChannelType, CommandInteractionOption, Client, ApplicationCommand, TextInputBuilder, ModalSubmitFields, Collection, TextInputComponent, TextInputComponentData, GuildEmoji, GuildTextBasedChannel, Message, Role } from 'discord.js';
2
+ import { GatewayIntentBits, Partials, Attachment, AttachmentBuilder, EmbedAssetData, Guild, GuildMember, User, ClientUser, ImageURLOptions, EmbedFooterData, APIEmbed, Embed, EmbedData, EmbedBuilder, ColorResolvable, AnyComponentBuilder, ActionRowBuilder, ButtonBuilder, LinkButtonComponentData, ChannelType, CommandInteractionOption, Client, ApplicationCommand, TextInputBuilder, ModalSubmitFields, Collection, TextInputComponent, TextInputComponentData, GuildEmoji, GuildTextBasedChannel, Message, Role } from 'discord.js';
3
3
  export * from '@magicyan/core';
4
4
 
5
5
  declare const chars: {
@@ -23,21 +23,27 @@ type EmbedAssetOptions = Omit<EmbedAssetData, "url">;
23
23
  declare function createEmbedAsset(source: EmbedPlusAssetData, options?: EmbedAssetOptions): EmbedAssetData | undefined;
24
24
 
25
25
  interface MemberAuthor {
26
+ type: GuildMember;
26
27
  property?: "username" | "displayName" | "id" | "globalName" | "nickname";
27
28
  }
28
29
  interface UserAuthor {
30
+ type: User | ClientUser;
29
31
  property?: "username" | "displayName" | "id" | "globalName";
30
32
  }
31
33
  interface GuildAuthor {
34
+ type: Guild;
32
35
  property?: "name" | "id";
33
36
  }
34
- type AuthorType = Guild | GuildMember | User;
37
+ type AuthorOption = MemberAuthor | UserAuthor | GuildAuthor;
38
+ type AuthorType = Guild | GuildMember | User | ClientUser;
35
39
  type CreateEmbedAuthorOptions<T extends AuthorType> = {
36
40
  iconURL?: string;
37
41
  url?: string | null;
38
42
  prefix?: string;
39
43
  suffix?: string;
40
- } & ImageURLOptions & (T extends User ? UserAuthor : T extends GuildMember ? MemberAuthor : T extends Guild ? GuildAuthor : never);
44
+ } & ImageURLOptions & Omit<Extract<AuthorOption, {
45
+ type: T;
46
+ }>, "type">;
41
47
  declare function createEmbedAuthor<T extends AuthorType>(type: T, options?: CreateEmbedAuthorOptions<T>): {
42
48
  name: string;
43
49
  url: string | undefined;
@@ -125,15 +131,6 @@ declare class EmbedPlusBuilder extends EmbedBuilder {
125
131
  update(data: EmbedPlusData): this;
126
132
  has(property: keyof EmbedPlusData): boolean;
127
133
  toArray(): EmbedPlusBuilder[];
128
- /**
129
- *
130
- * @param data
131
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
132
- * @returns AttachmentBuilder
133
- *
134
- * Create a json attachment file from this embed
135
- */
136
- toAttachment(data?: AttachmentData, space?: number): AttachmentBuilder;
137
134
  toString(space?: number): string;
138
135
  setBorderColor(color: EmbedPlusColorData | null): this;
139
136
  setAsset(asset: "thumbnail" | "image", source: EmbedPlusAssetData): this;
@@ -159,17 +156,17 @@ type GetChannelType<Type extends GuildChannelType> = Extract<NonNullable<Command
159
156
  type: Type extends ChannelType.PublicThread | ChannelType.AnnouncementThread ? ChannelType.PublicThread | ChannelType.AnnouncementThread : Type;
160
157
  }>;
161
158
  declare function findChannel<Type extends GuildChannelType = ChannelType.GuildText>(guild: Guild, type?: Type): {
162
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
163
159
  byId(id: string): GetChannelType<Type> | undefined;
160
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
164
161
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
165
162
  inCategoryId(id: string): {
166
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
167
- byId(id: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
163
+ byId(id: string): GetChannelType<Type> | undefined;
164
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
168
165
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
169
166
  };
170
167
  inCategoryName(name: string): {
171
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
172
- byId(id: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
168
+ byId(id: string): GetChannelType<Type> | undefined;
169
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
173
170
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
174
171
  };
175
172
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { GatewayIntentBits, Partials, Attachment, AttachmentBuilder, EmbedAssetData, Guild, GuildMember, User, ImageURLOptions, EmbedFooterData, APIEmbed, Embed, EmbedData, EmbedBuilder, AttachmentData, ColorResolvable, AnyComponentBuilder, ActionRowBuilder, ButtonBuilder, LinkButtonComponentData, ChannelType, CommandInteractionOption, Client, ApplicationCommand, TextInputBuilder, ModalSubmitFields, Collection, TextInputComponent, TextInputComponentData, GuildEmoji, GuildTextBasedChannel, Message, Role } from 'discord.js';
2
+ import { GatewayIntentBits, Partials, Attachment, AttachmentBuilder, EmbedAssetData, Guild, GuildMember, User, ClientUser, ImageURLOptions, EmbedFooterData, APIEmbed, Embed, EmbedData, EmbedBuilder, ColorResolvable, AnyComponentBuilder, ActionRowBuilder, ButtonBuilder, LinkButtonComponentData, ChannelType, CommandInteractionOption, Client, ApplicationCommand, TextInputBuilder, ModalSubmitFields, Collection, TextInputComponent, TextInputComponentData, GuildEmoji, GuildTextBasedChannel, Message, Role } from 'discord.js';
3
3
  export * from '@magicyan/core';
4
4
 
5
5
  declare const chars: {
@@ -23,21 +23,27 @@ type EmbedAssetOptions = Omit<EmbedAssetData, "url">;
23
23
  declare function createEmbedAsset(source: EmbedPlusAssetData, options?: EmbedAssetOptions): EmbedAssetData | undefined;
24
24
 
25
25
  interface MemberAuthor {
26
+ type: GuildMember;
26
27
  property?: "username" | "displayName" | "id" | "globalName" | "nickname";
27
28
  }
28
29
  interface UserAuthor {
30
+ type: User | ClientUser;
29
31
  property?: "username" | "displayName" | "id" | "globalName";
30
32
  }
31
33
  interface GuildAuthor {
34
+ type: Guild;
32
35
  property?: "name" | "id";
33
36
  }
34
- type AuthorType = Guild | GuildMember | User;
37
+ type AuthorOption = MemberAuthor | UserAuthor | GuildAuthor;
38
+ type AuthorType = Guild | GuildMember | User | ClientUser;
35
39
  type CreateEmbedAuthorOptions<T extends AuthorType> = {
36
40
  iconURL?: string;
37
41
  url?: string | null;
38
42
  prefix?: string;
39
43
  suffix?: string;
40
- } & ImageURLOptions & (T extends User ? UserAuthor : T extends GuildMember ? MemberAuthor : T extends Guild ? GuildAuthor : never);
44
+ } & ImageURLOptions & Omit<Extract<AuthorOption, {
45
+ type: T;
46
+ }>, "type">;
41
47
  declare function createEmbedAuthor<T extends AuthorType>(type: T, options?: CreateEmbedAuthorOptions<T>): {
42
48
  name: string;
43
49
  url: string | undefined;
@@ -125,15 +131,6 @@ declare class EmbedPlusBuilder extends EmbedBuilder {
125
131
  update(data: EmbedPlusData): this;
126
132
  has(property: keyof EmbedPlusData): boolean;
127
133
  toArray(): EmbedPlusBuilder[];
128
- /**
129
- *
130
- * @param data
131
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
132
- * @returns AttachmentBuilder
133
- *
134
- * Create a json attachment file from this embed
135
- */
136
- toAttachment(data?: AttachmentData, space?: number): AttachmentBuilder;
137
134
  toString(space?: number): string;
138
135
  setBorderColor(color: EmbedPlusColorData | null): this;
139
136
  setAsset(asset: "thumbnail" | "image", source: EmbedPlusAssetData): this;
@@ -159,17 +156,17 @@ type GetChannelType<Type extends GuildChannelType> = Extract<NonNullable<Command
159
156
  type: Type extends ChannelType.PublicThread | ChannelType.AnnouncementThread ? ChannelType.PublicThread | ChannelType.AnnouncementThread : Type;
160
157
  }>;
161
158
  declare function findChannel<Type extends GuildChannelType = ChannelType.GuildText>(guild: Guild, type?: Type): {
162
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
163
159
  byId(id: string): GetChannelType<Type> | undefined;
160
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
164
161
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
165
162
  inCategoryId(id: string): {
166
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
167
- byId(id: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
163
+ byId(id: string): GetChannelType<Type> | undefined;
164
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
168
165
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
169
166
  };
170
167
  inCategoryName(name: string): {
171
- byName(name: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
172
- byId(id: string, filter?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
168
+ byId(id: string): GetChannelType<Type> | undefined;
169
+ byName(name: string, and?: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
173
170
  byFilter(filter: FindChannelFilter<Type>): GetChannelType<Type> | undefined;
174
171
  };
175
172
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicyan/discord",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Simple functions to facilitate discord bot development",
5
5
  "license": "MIT",
6
6
  "type": "module",