remove unused client
Some checks failed
Compile the repository / compile (pull_request) Failing after 18s
Run unit tests / test (pull_request) Successful in 16s

This commit is contained in:
kenobi 2023-11-22 19:51:35 +01:00
parent 417b24d408
commit 1ae8278fb8

View File

@ -1,5 +1,4 @@
import { Guild, MessageReaction, Role, User } from "discord.js"; import { Guild, MessageReaction, Role, User } from "discord.js";
import { ExtendedClient } from "../structures/client";
import { GuildMember } from "discord.js"; import { GuildMember } from "discord.js";
import { logger } from "../logger"; import { logger } from "../logger";
import { config } from "../configuration"; import { config } from "../configuration";
@ -7,7 +6,7 @@ import { Maybe } from "../interfaces";
export default class RoleController { export default class RoleController {
constructor(private client: ExtendedClient) { } constructor() { }
private getAnnounceRoleIdForGuild(guildId: string): string { private getAnnounceRoleIdForGuild(guildId: string): string {
const role = config.bot.announcement_role const role = config.bot.announcement_role
if (!role) throw new Error(`No announcementRole defined for guild ${guildId}`) if (!role) throw new Error(`No announcementRole defined for guild ${guildId}`)