refactor(PresenceManager): have Presence extend Base and simplify add (#6056)

* refactor(PresenceManager): have Presence extend Base and simplify add

* style(Presence): add empty line after super call

Co-authored-by: Noel <buechler.noel@outlook.com>

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
SpaceEEC
2021-07-05 20:53:15 +02:00
committed by GitHub
parent afbd5db404
commit ded93feb57
4 changed files with 10 additions and 15 deletions

3
typings/index.d.ts vendored
View File

@@ -1273,10 +1273,9 @@ export class Permissions extends BitField<PermissionString, bigint> {
public static resolve(permission?: PermissionResolvable): bigint;
}
export class Presence {
export class Presence extends Base {
public constructor(client: Client, data?: unknown);
public activities: Activity[];
public readonly client: Client;
public clientStatus: ClientPresenceStatusData | null;
public guild: Guild | null;
public readonly member: GuildMember | null;