galactic-bot/@types/Infractions.d.ts

100 lines
2.2 KiB
TypeScript
Raw Normal View History

2023-12-05 16:47:54 +01:00
import { GuildTextBasedChannel } from 'discord.js';
import { MemberWrapper } from '../src/client/components/wrappers/index.ts';
import { BaseInfractionData } from './Client.ts';
import { Infraction } from '../src/client/interfaces/index.ts';
export type ResolveResult = {
result?: void,
message?: string | null,
error?: boolean
}
export type InfractionFail = {
error: true,
infraction: Infraction,
reason: string,
fatal: boolean,
formatted: boolean
}
export type InfractionSuccess = {
error: false,
infraction: Infraction
}
export type AddRoleData = {
target: MemberWrapper,
executor: MemberWrapper
} & BaseInfractionData
export type BanData = {
executor: MemberWrapper
} & BaseInfractionData
export type KickData = {
target: MemberWrapper,
executor: MemberWrapper
} & BaseInfractionData
export type LockdownData = {
executor: MemberWrapper,
target: GuildTextBasedChannel
} & BaseInfractionData
export type MuteData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData
export type NicknameData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData
export type NoteData = {
executor: MemberWrapper,
} & BaseInfractionData
export type PruneData = {
executor: MemberWrapper,
target: GuildTextBasedChannel
} & BaseInfractionData
export type RemoveRoleData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData
export type SlowmodeData = {
executor: MemberWrapper,
target: GuildTextBasedChannel
} & BaseInfractionData
export type UnbanData = {
executor: MemberWrapper,
} & BaseInfractionData
export type SoftbanData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData
export type UnlockdownData = {
executor: MemberWrapper,
target: GuildTextBasedChannel
} & BaseInfractionData
export type UnmuteData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData
export type VcKickData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData
export type WarnData = {
executor: MemberWrapper,
target: MemberWrapper
} & BaseInfractionData