Remove MemberRolesManager#delete

This commit is contained in:
DjDeveloperr 2020-11-09 18:16:51 +05:30
parent 72f0b91643
commit 9c9726259b

View file

@ -1,5 +1,4 @@
import { Client } from '../models/client.ts'
import { CHANNEL } from '../types/endpoint.ts'
import { BaseChildManager } from './baseChild.ts'
import { RolePayload } from "../types/role.ts"
import { Role } from "../structures/role.ts"
@ -24,10 +23,6 @@ export class MemberRolesManager extends BaseChildManager<
if (res !== undefined && mem.roles.includes(res.id) === true) return res
else return undefined
}
async delete(id: string): Promise<boolean> {
return this.client.rest.delete(CHANNEL(id))
}
async array (): Promise<Role[]> {
const arr = (await this.parent.array()) as Role[]