mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-12 23:58:04 +01:00
refactor(arabot): fix extra type import from discord.js
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user