feat: add /pickable-roles and /pick-role basis

This commit is contained in:
41666 2021-08-01 18:57:57 -04:00
parent c2ee4f380a
commit a4207d5713
22 changed files with 343 additions and 23 deletions

View file

@ -11,3 +11,8 @@ export type Category = {
type: CategoryType;
position: number;
};
export type CategorySlug = {
roles: Category['roles'];
type: Category['type'];
};

View file

@ -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;
};
};