3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 10:25:01 +00:00

fix: import discord-api-types correctly

This commit is contained in:
almeidx 2022-04-25 17:38:34 +01:00
parent d60d2bc568
commit 6109af80cc
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5
6 changed files with 7 additions and 8 deletions

View file

@ -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 { TextChannel } from "discord.js";
import * as t from "io-ts"; import * as t from "io-ts";
import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter"; import { renderTemplate, TemplateSafeValueContainer } from "../../../templateFormatter";

View file

@ -1,4 +1,4 @@
import { Snowflake } from "discord-api-types"; import { Snowflake } from "discord-api-types/v9";
import { User, Util } from "discord.js"; import { User, Util } from "discord.js";
import * as t from "io-ts"; import * as t from "io-ts";
import { tNullable } from "../../../utils"; import { tNullable } from "../../../utils";

View file

@ -1,4 +1,4 @@
import { Snowflake } from "discord-api-types"; import { Snowflake } from "discord-api-types/v9";
import { User, Util } from "discord.js"; import { User, Util } from "discord.js";
import * as t from "io-ts"; import * as t from "io-ts";
import { automodTrigger } from "../helpers"; import { automodTrigger } from "../helpers";

View file

@ -1,4 +1,4 @@
import { Snowflake } from "discord-api-types"; import { Snowflake } from "discord-api-types/v9";
import { User, Util } from "discord.js"; import { User, Util } from "discord.js";
import * as t from "io-ts"; import * as t from "io-ts";
import { automodTrigger } from "../helpers"; import { automodTrigger } from "../helpers";

View file

@ -1,4 +1,4 @@
import { Snowflake } from "discord-api-types"; import { Snowflake } from "discord-api-types/v9";
import { User, Util } from "discord.js"; import { User, Util } from "discord.js";
import * as t from "io-ts"; import * as t from "io-ts";
import { tNullable } from "../../../utils"; import { tNullable } from "../../../utils";

View file

@ -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 { GuildPluginData } from "knub";
import { InternalPosterPluginType } from "../types"; import { InternalPosterPluginType } from "../types";
import { channelIsWebhookable, getOrCreateWebhookForChannel } from "./getOrCreateWebhookForChannel"; import { channelIsWebhookable } from "./getOrCreateWebhookForChannel";
import { APIMessage } from "discord-api-types";
import { isDiscordAPIError } from "../../../utils"; import { isDiscordAPIError } from "../../../utils";
import { getOrCreateWebhookClientForChannel } from "./getOrCreateWebhookClientForChannel"; import { getOrCreateWebhookClientForChannel } from "./getOrCreateWebhookClientForChannel";