1 |
import { GuildMember } from "discord.js"; |
import { GuildMember } from "discord.js"; |
2 |
import DiscordClient from "../client/Client"; |
import DiscordClient from "../client/Client"; |
3 |
import BaseCommand from "../utils/structures/BaseCommand"; |
import BaseCommand from "../utils/structures/BaseCommand"; |
4 |
|
import Service from "../utils/structures/Service"; |
5 |
|
|
6 |
export default class Auth { |
export default class Auth extends Service { |
|
constructor(protected client: DiscordClient) { |
|
|
|
|
|
} |
|
|
|
|
7 |
async verify(member: GuildMember, command: BaseCommand): Promise<boolean> { |
async verify(member: GuildMember, command: BaseCommand): Promise<boolean> { |
8 |
const cmds: string[] = await this.client.config.get('global_commands'); |
const cmds: string[] = await this.client.config.get('global_commands'); |
9 |
|
|