Skip to content

Commit

Permalink
refactor(PermissionOverwriteManager): Use OverwriteType (#8374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jul 27, 2022
1 parent 798466a commit 6d24805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -72,11 +72,11 @@ class PermissionOverwriteManager extends CachedManager {
}

/**
* Extra information about the overwrite
* Extra information about the overwrite.
* @typedef {Object} GuildChannelOverwriteOptions
* @property {string} [reason] Reason for creating/editing this overwrite
* @property {number} [type] The type of overwrite, either `0` for a role or `1` for a member. Use this to bypass
* automatic resolution of type that results in an error for uncached structure
* @property {string} [reason] The reason for creating/editing this overwrite
* @property {OverwriteType} [type] The type of overwrite. Use this to bypass automatic resolution of `type`
* that results in an error for an uncached structure
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Expand Up @@ -4712,7 +4712,7 @@ export interface GuildChannelEditOptions {

export interface GuildChannelOverwriteOptions {
reason?: string;
type?: number;
type?: OverwriteType;
}

export interface GuildCreateOptions {
Expand Down

1 comment on commit 6d24805

@vercel
Copy link

@vercel vercel bot commented on 6d24805 Jul 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.