refactor: move Guild#defaultRole to RoleStore#everyone (#3347)

* remove guild#defaultRole

* add RoleStore#defaultRole

* typings

* fix trailing space

* another one

* Rename it to everyone
This commit is contained in:
didinele
2019-08-17 19:02:17 +03:00
committed by SpaceEEC
parent 6d3c55b68c
commit 2df4f227a4
3 changed files with 10 additions and 10 deletions

2
typings/index.d.ts vendored
View File

@@ -686,7 +686,6 @@ declare module 'discord.js' {
public readonly createdAt: Date;
public readonly createdTimestamp: number;
public defaultMessageNotifications: DefaultMessageNotifications | number;
public readonly defaultRole: Role | null;
public deleted: boolean;
public description: string | null;
public embedChannel: GuildChannel | null;
@@ -1795,6 +1794,7 @@ declare module 'discord.js' {
export class RoleStore extends DataStore<Snowflake, Role, typeof Role, RoleResolvable> {
constructor(guild: Guild, iterable?: Iterable<any>);
public readonly everyone: Role | null;
public readonly highest: Role;
public create(options?: { data?: RoleData, reason?: string }): Promise<Role>;