Skip to content

Commit

Permalink
types(GuildFeature): allow feature strings to be passed (#8264)
Browse files Browse the repository at this point in the history
Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com>
  • Loading branch information
ImRodry and Syjalo committed Jul 17, 2022
1 parent 5aeed99 commit b7d4e55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export abstract class BaseGuild extends Base {
protected constructor(client: Client, data: RawBaseGuildData);
public get createdAt(): Date;
public get createdTimestamp(): number;
public features: GuildFeature[];
public features: `${GuildFeature}`[];
public icon: string | null;
public id: Snowflake;
public name: string;
Expand Down Expand Up @@ -1335,7 +1335,7 @@ export class GuildPreview extends Base {
public discoverySplash: string | null;
public emojis: Collection<Snowflake, GuildPreviewEmoji>;
public stickers: Collection<Snowflake, Sticker>;
public features: GuildFeature[];
public features: `${GuildFeature}`[];
public icon: string | null;
public id: Snowflake;
public name: string;
Expand Down Expand Up @@ -4747,7 +4747,7 @@ export interface GuildEditData {
preferredLocale?: Locale | null;
premiumProgressBarEnabled?: boolean;
description?: string | null;
features?: GuildFeature[];
features?: `${GuildFeature}`[];
reason?: string;
}

Expand Down

0 comments on commit b7d4e55

Please sign in to comment.