Organize imports

This commit is contained in:
Tarrgon
2025-09-15 17:32:36 -04:00
parent 2b0c1de895
commit 06d7e942f6
18 changed files with 30 additions and 42 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { Channel, GuildBasedChannel, GuildChannel, GuildTextBasedChannel, TextBasedChannel, VoiceBasedChannel } from 'discord.js';
import { GuildBasedChannel } from 'discord.js';
import { Database } from '../shared/Database';
export async function channelIsInStaffCategory(channel: GuildBasedChannel) {
-2
View File
@@ -1,7 +1,5 @@
import { Guild } from 'discord.js';
import { config } from '../config';
import { E621Post, E621User, Record } from '../types';
import { Database } from '../shared/Database';
const BLACKLISTED_TAGS: string[] = [];
const BLACKLISTED_NONSAFE_TAGS: string[] = ['young'];
+2 -3
View File
@@ -1,8 +1,7 @@
import { ChatInputCommandInteraction, GuildMember, ModalSubmitInteraction, UserContextMenuCommandInteraction } from 'discord.js';
import { Database } from '../shared/Database';
import { E621User } from '../types';
import { getE621User } from './e621-utils';
import { Database } from '../shared/Database';
import { config } from '../config';
import { ChatInputCommandInteraction, GuildMember, ModalSubmitInteraction, UserContextMenuCommandInteraction } from 'discord.js';
export async function syncName(interaction: ChatInputCommandInteraction | UserContextMenuCommandInteraction | ModalSubmitInteraction, member: GuildMember, id: number | null) {
if (member.roles.highest.comparePositionTo(member.guild.members.me!.roles.highest) > 0) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { ActionRowBuilder, APIEmbedField, ButtonBuilder, ButtonStyle, EmbedBuilder, GuildMember, MessageActionRowComponentBuilder, time } from 'discord.js';
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, time } from 'discord.js';
import { Database } from '../shared/Database';
import { MessageContent, Note } from '../types';
+4 -5
View File
@@ -1,9 +1,8 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, Embed, EmbedBuilder, Guild } from 'discord.js';
import { Database } from '../shared/Database';
import { E621User, MessageContent, Record, RecordCategory } from '../types';
import { getE621User, getUserRecords } from './e621-utils';
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, Guild } from 'discord.js';
import { config } from '../config';
import { e621IdsFromAltData, comprehensiveAltLookupFromDiscord } from './alt-utils';
import { E621User, MessageContent, Record, RecordCategory } from '../types';
import { comprehensiveAltLookupFromDiscord, e621IdsFromAltData } from './alt-utils';
import { getE621User, getUserRecords } from './e621-utils';
type RecordWithUserData = Record & { user: E621User, creator: E621User, updater: E621User }
type AllRecords = RecordWithUserData[];