Skip to content

Commit

Permalink
fix: add missing type modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Apr 10, 2023
1 parent 71a2fde commit 75fb220
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/resolvers/message.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ChannelMessageRegex, MessageLinkRegex, SnowflakeRegex } from '@sapphire/discord-utilities';
import {
AnyInteraction,
isAnyInteraction,
isGuildBasedChannel,
isNewsChannel,
isStageChannel,
isTextBasedChannel,
isTextChannel,
type AnyInteraction,
type GuildBasedChannelTypes,
type TextBasedChannelTypes
} from '@sapphire/discord.js-utilities';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Result } from '@sapphire/result';
import { Stopwatch } from '@sapphire/stopwatch';
import { Listener } from '../../../lib/structures/Listener';
import { ContextMenuCommandAcceptedPayload, Events } from '../../../lib/types/Events';
import { Events, type ContextMenuCommandAcceptedPayload } from '../../../lib/types/Events';

export class CoreListener extends Listener<typeof Events.ContextMenuCommandAccepted> {
public constructor(context: Listener.Context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Listener } from '../../../lib/structures/Listener';
import { Events, PreContextMenuCommandRunPayload } from '../../../lib/types/Events';
import { Events, type PreContextMenuCommandRunPayload } from '../../../lib/types/Events';

export class CoreListener extends Listener<typeof Events.PreContextMenuCommandRun> {
public constructor(context: Listener.Context) {
Expand Down
6 changes: 3 additions & 3 deletions src/preconditions/ClientPermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
ContextMenuCommandInteraction,
PermissionFlagsBits,
PermissionsBitField,
PermissionsString,
TextBasedChannel,
type Message
type Message,
type PermissionsString,
type TextBasedChannel
} from 'discord.js';
import { Identifiers } from '../lib/errors/Identifiers';
import type { Command } from '../lib/structures/Command';
Expand Down
2 changes: 1 addition & 1 deletion src/preconditions/GuildNewsOnly.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChannelType, ChatInputCommandInteraction, ContextMenuCommandInteraction, Message, TextBasedChannelTypes } from 'discord.js';
import { ChannelType, ChatInputCommandInteraction, ContextMenuCommandInteraction, Message, type TextBasedChannelTypes } from 'discord.js';
import { Identifiers } from '../lib/errors/Identifiers';
import { AllFlowsPrecondition } from '../lib/structures/Precondition';

Expand Down
2 changes: 1 addition & 1 deletion src/preconditions/GuildTextOnly.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChannelType, ChatInputCommandInteraction, ContextMenuCommandInteraction, Message, TextBasedChannelTypes } from 'discord.js';
import { ChannelType, ChatInputCommandInteraction, ContextMenuCommandInteraction, Message, type TextBasedChannelTypes } from 'discord.js';
import { Identifiers } from '../lib/errors/Identifiers';
import { AllFlowsPrecondition } from '../lib/structures/Precondition';

Expand Down
2 changes: 1 addition & 1 deletion tests/application-commands/computeDifferences.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApplicationCommandOptionType, ApplicationCommandType, RESTPostAPIChatInputApplicationCommandsJSONBody } from 'discord-api-types/v10';
import { ApplicationCommandOptionType, ApplicationCommandType, type RESTPostAPIChatInputApplicationCommandsJSONBody } from 'discord-api-types/v10';
import { getCommandDifferences as getCommandDifferencesRaw } from '../../src/lib/utils/application-commands/computeDifferences';

function getCommandDifferences(...args: Parameters<typeof getCommandDifferencesRaw>) {
Expand Down

0 comments on commit 75fb220

Please sign in to comment.