Skip to content

Commit b7d4e55

Browse files
ImRodrySyjalo
andauthored
types(GuildFeature): allow feature strings to be passed (#8264)
Co-authored-by: Synbulat Biishev <[email protected]>
1 parent 5aeed99 commit b7d4e55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: packages/discord.js/typings/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ export abstract class BaseGuild extends Base {
494494
protected constructor(client: Client, data: RawBaseGuildData);
495495
public get createdAt(): Date;
496496
public get createdTimestamp(): number;
497-
public features: GuildFeature[];
497+
public features: `${GuildFeature}`[];
498498
public icon: string | null;
499499
public id: Snowflake;
500500
public name: string;
@@ -1335,7 +1335,7 @@ export class GuildPreview extends Base {
13351335
public discoverySplash: string | null;
13361336
public emojis: Collection<Snowflake, GuildPreviewEmoji>;
13371337
public stickers: Collection<Snowflake, Sticker>;
1338-
public features: GuildFeature[];
1338+
public features: `${GuildFeature}`[];
13391339
public icon: string | null;
13401340
public id: Snowflake;
13411341
public name: string;
@@ -4747,7 +4747,7 @@ export interface GuildEditData {
47474747
preferredLocale?: Locale | null;
47484748
premiumProgressBarEnabled?: boolean;
47494749
description?: string | null;
4750-
features?: GuildFeature[];
4750+
features?: `${GuildFeature}`[];
47514751
reason?: string;
47524752
}
47534753

0 commit comments

Comments
 (0)