mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { SnakeCasedPropertiesDeep } from "../util.ts";
|
||||
import { ApplicationCommandInteractionDataOption } from "./application_command_interaction_data_option.ts";
|
||||
import { ApplicationCommandInteractionDataResolved } from "./application_command_interaction_data_resolved.ts";
|
||||
|
||||
export interface ApplicationCommandInteractionData {
|
||||
/** The Id of the invoked command */
|
||||
id: string;
|
||||
/** The name of the invoked command */
|
||||
name: string;
|
||||
/** Converted users + roles + channels */
|
||||
resolved?: ApplicationCommandInteractionDataResolved;
|
||||
/** The params + values from the user */
|
||||
options?: ApplicationCommandInteractionDataOption[];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Channel } from "../channels/channel.ts";
|
||||
import { GuildMember } from "../guilds/guild_member.ts";
|
||||
import { Role } from "../permissions/role.ts";
|
||||
import { User } from "../users/user.ts";
|
||||
|
||||
export interface ApplicationCommandInteractionDataResolved {
|
||||
/** The Ids and User objects */
|
||||
users?: Record<string, User>;
|
||||
/** The Ids and partial Member objects */
|
||||
members?: Record<string, Omit<GuildMember, "user" | "deaf" | "mute">>;
|
||||
/** The Ids and Role objects */
|
||||
roes?: Record<string, Role>;
|
||||
/** The Ids and partial Channel objects */
|
||||
channels?: Record<
|
||||
string,
|
||||
Pick<Channel, "id" | "name" | "type" | "permissionOverwrites">
|
||||
>;
|
||||
}
|
||||
Reference in New Issue
Block a user