refactor(arabot): fix extra type import from discord.js

This commit is contained in:
Anthony
2022-08-19 05:00:19 +01:00
parent 99a6e6deb8
commit 5428a76083
8 changed files with 48 additions and 16 deletions

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class CoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class DevCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class DiversityCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class MentorCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class ModOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class PatreonOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class VerifierCoordinatorOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {

View File

@@ -18,9 +18,13 @@
*/
import { AllFlowsPrecondition } from '@sapphire/framework';
import type { CommandInteraction, ContextMenuInteraction, Message } from 'discord.js';
import type {
CommandInteraction,
ContextMenuInteraction,
Message,
GuildMember,
} from 'discord.js';
import IDs from '../utils/ids';
import type { GuildMember } from 'discord.js';
export class VerifierOnlyPrecondition extends AllFlowsPrecondition {
public override async messageRun(message: Message) {