Skip to content

Commit

Permalink
types(PermissionOverwriteOptions): remove unused interface (#5651)
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi authored May 27, 2021
1 parent 9f491ff commit b40027b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ declare module 'discord.js' {
public createInvite(options?: InviteOptions): Promise<Invite>;
public createOverwrite(
userOrRole: RoleResolvable | UserResolvable,
options: PermissionOverwriteOption,
options: PermissionOverwriteOptions,
overwriteOptions?: GuildChannelOverwriteOptions,
): Promise<this>;
public edit(data: ChannelData, reason?: string): Promise<this>;
Expand All @@ -907,7 +907,7 @@ declare module 'discord.js' {
public setTopic(topic: string | null, reason?: string): Promise<this>;
public updateOverwrite(
userOrRole: RoleResolvable | UserResolvable,
options: PermissionOverwriteOption,
options: PermissionOverwriteOptions,
overwriteOptions?: GuildChannelOverwriteOptions,
): Promise<this>;
public isText(): this is TextChannel | NewsChannel;
Expand Down Expand Up @@ -1349,11 +1349,11 @@ declare module 'discord.js' {
public deny: Readonly<Permissions>;
public id: Snowflake;
public type: OverwriteType;
public update(options: PermissionOverwriteOption, reason?: string): Promise<PermissionOverwrites>;
public update(options: PermissionOverwriteOptions, reason?: string): Promise<PermissionOverwrites>;
public delete(reason?: string): Promise<PermissionOverwrites>;
public toJSON(): object;
public static resolveOverwriteOptions(
options: PermissionOverwriteOption,
options: PermissionOverwriteOptions,
initialPermissions: { allow?: PermissionResolvable; deny?: PermissionResolvable },
): ResolvedOverwriteOptions;
public static resolve(overwrite: OverwriteResolvable, guild: Guild): RawOverwrite;
Expand Down Expand Up @@ -3314,7 +3314,7 @@ declare module 'discord.js' {

interface PermissionObject extends Record<PermissionString, boolean> {}

interface PermissionOverwriteOption extends Partial<Record<PermissionString, boolean | null>> {}
interface PermissionOverwriteOptions extends Partial<Record<PermissionString, boolean | null>> {}

type PermissionResolvable = BitFieldResolvable<PermissionString, bigint>;

Expand Down Expand Up @@ -3357,12 +3357,6 @@ declare module 'discord.js' {

type RecursiveReadonlyArray<T> = ReadonlyArray<T | RecursiveReadonlyArray<T>>;

interface PermissionOverwriteOptions {
allow: PermissionResolvable;
deny: PermissionResolvable;
id: UserResolvable | RoleResolvable;
}

type PremiumTier = 0 | 1 | 2 | 3;

interface PresenceData {
Expand Down

0 comments on commit b40027b

Please sign in to comment.