mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
feat: add /pickable-roles and /pick-role basis
This commit is contained in:
parent
c2ee4f380a
commit
a4207d5713
22 changed files with 343 additions and 23 deletions
|
@ -11,3 +11,8 @@ export type Category = {
|
|||
type: CategoryType;
|
||||
position: number;
|
||||
};
|
||||
|
||||
export type CategorySlug = {
|
||||
roles: Category['roles'];
|
||||
type: Category['type'];
|
||||
};
|
||||
|
|
|
@ -41,12 +41,16 @@ export enum InteractionCallbackType {
|
|||
UPDATE_MESSAGE = 7,
|
||||
}
|
||||
|
||||
export enum InteractionFlags {
|
||||
EPHEMERAL = 1 << 6,
|
||||
}
|
||||
|
||||
export type InteractionCallbackData = {
|
||||
tts?: boolean;
|
||||
content?: string;
|
||||
embeds?: {};
|
||||
allowed_mentions?: {};
|
||||
flags?: number;
|
||||
flags?: InteractionFlags;
|
||||
components?: {}[];
|
||||
};
|
||||
|
||||
|
@ -54,3 +58,18 @@ export type InteractionResponse = {
|
|||
type: InteractionCallbackType;
|
||||
data?: InteractionCallbackData;
|
||||
};
|
||||
|
||||
export type Embed = {
|
||||
fields: {
|
||||
name: string;
|
||||
value: string;
|
||||
inline?: boolean;
|
||||
}[];
|
||||
timestamp?: string;
|
||||
title: string;
|
||||
color: number;
|
||||
author?: {
|
||||
name: string;
|
||||
icon_url: string;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue