You've already forked NitroSniper
mirror of
https://github.com/neoarz/NitroSniper.git
synced 2026-05-11 13:15:37 +02:00
feat: webhook support
This commit is contained in:
50
types.ts
Normal file
50
types.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
export interface ClaimRequest {
|
||||
code: string;
|
||||
authorId?: string;
|
||||
authorName?: string;
|
||||
authorUsername?: string;
|
||||
channelId?: string;
|
||||
guildId?: string;
|
||||
messageId?: string;
|
||||
}
|
||||
|
||||
export interface FinderProfile {
|
||||
name: string;
|
||||
iconUrl?: 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;
|
||||
}
|
||||
Reference in New Issue
Block a user