forked from Galactic/galactic-bot
100 lines
2.2 KiB
TypeScript
100 lines
2.2 KiB
TypeScript
|
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
|