Files
fluxer/fluxer_app/src/features/invite/events/InviteDelete.ts
T

14 lines
405 B
TypeScript

// SPDX-License-Identifier: AGPL-3.0-or-later
import type {GatewayHandlerContext} from '@app/features/gateway/events/EventRouter';
import Invites from '@app/features/invite/state/Invites';
interface InviteDeletePayload {
code: string;
guild_id: string;
}
export function handleInviteDelete(data: InviteDeletePayload, _context: GatewayHandlerContext): void {
Invites.handleInviteDelete(data.code);
}