diff --git a/src/resources/extensions/remote-questions/discord-adapter.ts b/src/resources/extensions/remote-questions/discord-adapter.ts index df54ef6bd..97e145a00 100644 --- a/src/resources/extensions/remote-questions/discord-adapter.ts +++ b/src/resources/extensions/remote-questions/discord-adapter.ts @@ -20,11 +20,13 @@ const DISCORD_API = "https://discord.com/api/v10"; export class DiscordAdapter implements ChannelAdapter { readonly name = "discord"; private botUserId: string | null = null; + private readonly token: string; + private readonly channelId: string; - constructor( - private readonly token: string, - private readonly channelId: string, - ) {} + constructor(token: string, channelId: string) { + this.token = token; + this.channelId = channelId; + } async validate(): Promise { const res = await this.discordApi("GET", "/users/@me"); diff --git a/src/resources/extensions/remote-questions/slack-adapter.ts b/src/resources/extensions/remote-questions/slack-adapter.ts index 8b48b328e..1f3beff17 100644 --- a/src/resources/extensions/remote-questions/slack-adapter.ts +++ b/src/resources/extensions/remote-questions/slack-adapter.ts @@ -20,11 +20,13 @@ const SLACK_API = "https://slack.com/api"; export class SlackAdapter implements ChannelAdapter { readonly name = "slack"; private botUserId: string | null = null; + private readonly token: string; + private readonly channelId: string; - constructor( - private readonly token: string, - private readonly channelId: string, - ) {} + constructor(token: string, channelId: string) { + this.token = token; + this.channelId = channelId; + } async validate(): Promise { const res = await this.slackApi("auth.test", {});