Files
hexerade/src/types/helper-types.d.ts
T
2025-06-05 08:58:45 -04:00

38 lines
951 B
TypeScript

import { ActionRowBuilder, APIRole, ButtonBuilder, EmbedBuilder, PermissionsBitField, TextChannel } from 'discord.js';
export type MessageContent = { content?: string, embeds?: EmbedBuilder[], components: ActionRowBuilder<ButtonBuilder>[] };
export type RoleChangeLog = {
key: '$add' | '$remove',
old?: Pick<APIRole, 'id' | 'name'>[],
new?: Pick<APIRole, 'id' | 'name'>[]
}
type ApplicationCommandPermission = {
type: 1 | 2 | 3,
permission: boolean,
id: string
}
export type ApplicationCommandPermissionChangeLog = {
key: sting,
old?: ApplicationCommandPermission,
new?: ApplicationCommandPermission
}
export type TimeoutChangeLog = {
key: 'communication_disabled_until',
old?: string,
new?: string
}
export type PermissionsChangeLog = {
key: 'permissions' | 'allow' | 'deny',
old?: number,
new?: number
}
export type PinExtras = {
channel: TextChannel,
messageId: string
}