fix(arabot): fix imports of types

This commit is contained in:
Anthony Berg
2023-05-13 14:41:37 +01:00
parent d493947579
commit 9a469c269c
6 changed files with 11 additions and 9 deletions

View File

@@ -19,13 +19,13 @@
import { RegisterBehavior } from '@sapphire/framework';
import { Subcommand } from '@sapphire/plugin-subcommands';
import type { Guild, TextChannel } from 'discord.js';
import type { Guild, TextChannel, Snowflake } from 'discord.js';
import {
CategoryChannel,
ChannelType,
EmbedBuilder,
GuildMember,
PermissionsBitField, Snowflake,
PermissionsBitField,
time,
} from 'discord.js';
import IDs from '#utils/ids';

View File

@@ -26,9 +26,8 @@ import {
GuildMember,
Message,
PermissionsBitField,
Snowflake,
} from 'discord.js';
import type { TextChannel } from 'discord.js';
import type { TextChannel, Snowflake } from 'discord.js';
import IDs from '#utils/ids';
export class DiversityCommand extends Subcommand {

View File

@@ -17,7 +17,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { InteractionHandler, InteractionHandlerTypes, PieceContext } from '@sapphire/framework';
import { InteractionHandler, InteractionHandlerTypes } from '@sapphire/framework';
import type { PieceContext } from '@sapphire/framework';
import type { ButtonInteraction, GuildMember } from 'discord.js';
import IDs from '#utils/ids';

View File

@@ -17,7 +17,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { InteractionHandler, InteractionHandlerTypes, PieceContext } from '@sapphire/framework';
import { InteractionHandler, InteractionHandlerTypes } from '@sapphire/framework';
import type { PieceContext } from '@sapphire/framework';
import type { ButtonInteraction, GuildMember, TextChannel } from 'discord.js';
import IDs from '#utils/ids';

View File

@@ -26,6 +26,7 @@ import type {
VoiceState,
GuildMember,
Guild,
Snowflake,
} from 'discord.js';
import {
time,
@@ -35,7 +36,7 @@ import {
ButtonInteraction,
ButtonStyle,
ActionRowBuilder,
EmbedBuilder, Snowflake,
EmbedBuilder,
} from 'discord.js';
import {
createVerificationText,

View File

@@ -22,12 +22,12 @@ import {
CategoryChannel,
ChannelType,
GuildMember,
PermissionsBitField, Snowflake,
PermissionsBitField,
TextChannel,
time,
User,
VoiceBasedChannel,
} from 'discord.js';
import type { Snowflake, VoiceBasedChannel } from 'discord.js';
import IDs from '#utils/ids';
export async function createVerificationText(