mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
feat(Guild): add the new nsfw_level property (#5660)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com> Co-authored-by: Noel <icrawltogo@gmail.com>
This commit is contained in:
12
typings/index.d.ts
vendored
12
typings/index.d.ts
vendored
@@ -37,6 +37,13 @@ declare enum InviteTargetType {
|
||||
EMBEDDED_APPLICATION = 2,
|
||||
}
|
||||
|
||||
declare enum NSFWLevels {
|
||||
DEFAULT = 0,
|
||||
EXPLICIT = 1,
|
||||
SAFE = 2,
|
||||
AGE_RESTRICTED = 3,
|
||||
}
|
||||
|
||||
declare enum OverwriteTypes {
|
||||
role = 0,
|
||||
member = 1,
|
||||
@@ -647,6 +654,7 @@ declare module 'discord.js' {
|
||||
ApplicationCommandPermissionTypes: typeof ApplicationCommandPermissionTypes;
|
||||
InteractionTypes: typeof InteractionTypes;
|
||||
InteractionResponseTypes: typeof InteractionResponseTypes;
|
||||
NSFWLevels: typeof NSFWLevels;
|
||||
};
|
||||
|
||||
export class DataResolver {
|
||||
@@ -731,7 +739,7 @@ declare module 'discord.js' {
|
||||
public mfaLevel: number;
|
||||
public name: string;
|
||||
public readonly nameAcronym: string;
|
||||
public nsfw: boolean;
|
||||
public nsfwLevel: NSFWLevel;
|
||||
public ownerID: Snowflake;
|
||||
public readonly partnered: boolean;
|
||||
public preferredLocale: string;
|
||||
@@ -3299,6 +3307,8 @@ declare module 'discord.js' {
|
||||
| 'REPLY'
|
||||
| 'APPLICATION_COMMAND';
|
||||
|
||||
type NSFWLevel = keyof typeof NSFWLevels;
|
||||
|
||||
interface OverwriteData {
|
||||
allow?: PermissionResolvable;
|
||||
deny?: PermissionResolvable;
|
||||
|
||||
Reference in New Issue
Block a user