WIP: feat/20-reactions-for-roles #59

Draft
kenobi wants to merge 16 commits from feat/20-reactions-for-roles into master
Showing only changes of commit 1ae8278fb8 - Show all commits

View File

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