Organize imports
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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'];
|
||||
|
||||
@@ -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,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';
|
||||
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user