You've already forked NitroSniper
mirror of
https://github.com/neoarz/NitroSniper.git
synced 2026-05-11 21:15:39 +02:00
47 lines
865 B
TypeScript
47 lines
865 B
TypeScript
export interface ClaimRequest {
|
|
code: string;
|
|
authorId?: string;
|
|
authorName?: string;
|
|
authorUsername?: string;
|
|
authorAvatarUrl?: string;
|
|
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;
|
|
}
|