Files
NitroSniper/types.ts

55 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2026-05-01 10:25:52 -04:00
/*
Made with by neoarz
I am not responsible for any damage caused by this plugin; use at your own risk
Vencord does not endorse/support this plugin (Works with Equicord as well)
dm @neoarz if u need help or have any questions
https://github.com/neoarz/NitroSniper
*/
2026-04-22 22:02:36 -04:00
export interface ClaimRequest {
code: string;
authorId?: string;
authorName?: string;
authorUsername?: string;
authorAvatarUrl?: string;
2026-04-22 22:02:36 -04:00
channelId?: string;
guildId?: string;
messageId?: string;
}
export type WebhookResult = "claimed" | "failed";
export interface WebhookField {
name: string;
value: string;
inline?: boolean;
}
export interface WebhookEmbed {
title: string;
color: number;
description?: string;
fields?: WebhookField[];
timestamp: string;
author?: {
name: string;
icon_url?: string;
};
footer?: {
text: string;
};
}
export interface WebhookPayload {
username: string;
embeds: WebhookEmbed[];
allowed_mentions: {
parse: string[];
};
}
export interface NativeWebhookResponse {
status: number;
data: string;
}