diff --git a/backend/src/plugins/Automod/actions/startThread.ts b/backend/src/plugins/Automod/actions/startThread.ts index 0fead10b..3a419ead 100644 --- a/backend/src/plugins/Automod/actions/startThread.ts +++ b/backend/src/plugins/Automod/actions/startThread.ts @@ -1,4 +1,4 @@ -import { GuildFeature, ThreadAutoArchiveDuration } from "discord-api-types"; +import { GuildFeature, ThreadAutoArchiveDuration } from "discord-api-types/v9"; import { TextChannel } from "discord.js"; import * as t from "io-ts"; import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter"; diff --git a/backend/src/plugins/Automod/triggers/threadArchive.ts b/backend/src/plugins/Automod/triggers/threadArchive.ts index 40cd43df..d4ed631b 100644 --- a/backend/src/plugins/Automod/triggers/threadArchive.ts +++ b/backend/src/plugins/Automod/triggers/threadArchive.ts @@ -1,4 +1,4 @@ -import { Snowflake } from "discord-api-types"; +import { Snowflake } from "discord-api-types/v9"; import { User, Util } from "discord.js"; import * as t from "io-ts"; import { tNullable } from "../../../utils"; diff --git a/backend/src/plugins/Automod/triggers/threadCreate.ts b/backend/src/plugins/Automod/triggers/threadCreate.ts index f4bc7e7a..c0ae6ad3 100644 --- a/backend/src/plugins/Automod/triggers/threadCreate.ts +++ b/backend/src/plugins/Automod/triggers/threadCreate.ts @@ -1,4 +1,4 @@ -import { Snowflake } from "discord-api-types"; +import { Snowflake } from "discord-api-types/v9"; import { User, Util } from "discord.js"; import * as t from "io-ts"; import { automodTrigger } from "../helpers"; diff --git a/backend/src/plugins/Automod/triggers/threadDelete.ts b/backend/src/plugins/Automod/triggers/threadDelete.ts index 988ee752..cecb5862 100644 --- a/backend/src/plugins/Automod/triggers/threadDelete.ts +++ b/backend/src/plugins/Automod/triggers/threadDelete.ts @@ -1,4 +1,4 @@ -import { Snowflake } from "discord-api-types"; +import { Snowflake } from "discord-api-types/v9"; import { User, Util } from "discord.js"; import * as t from "io-ts"; import { automodTrigger } from "../helpers"; diff --git a/backend/src/plugins/Automod/triggers/threadUnarchive.ts b/backend/src/plugins/Automod/triggers/threadUnarchive.ts index 05e729f1..ce3adf81 100644 --- a/backend/src/plugins/Automod/triggers/threadUnarchive.ts +++ b/backend/src/plugins/Automod/triggers/threadUnarchive.ts @@ -1,4 +1,4 @@ -import { Snowflake } from "discord-api-types"; +import { Snowflake } from "discord-api-types/v9"; import { User, Util } from "discord.js"; import * as t from "io-ts"; import { tNullable } from "../../../utils"; diff --git a/backend/src/plugins/InternalPoster/functions/sendMessage.ts b/backend/src/plugins/InternalPoster/functions/sendMessage.ts index 283cc3dc..3afa9614 100644 --- a/backend/src/plugins/InternalPoster/functions/sendMessage.ts +++ b/backend/src/plugins/InternalPoster/functions/sendMessage.ts @@ -1,8 +1,7 @@ -import { GuildTextBasedChannel, Message, MessageOptions, NewsChannel, TextChannel, WebhookClient } from "discord.js"; +import { GuildTextBasedChannel, MessageOptions, WebhookClient } from "discord.js"; import { GuildPluginData } from "knub"; import { InternalPosterPluginType } from "../types"; -import { channelIsWebhookable, getOrCreateWebhookForChannel } from "./getOrCreateWebhookForChannel"; -import { APIMessage } from "discord-api-types"; +import { channelIsWebhookable } from "./getOrCreateWebhookForChannel"; import { isDiscordAPIError } from "../../../utils"; import { getOrCreateWebhookClientForChannel } from "./getOrCreateWebhookClientForChannel";