@stelliajs/framework 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -122,14 +122,14 @@ export default {
122
122
  ### Simple command
123
123
 
124
124
  ```js
125
- import { type CommandStructure, type StelliaClient } from "@stelliajs/framework";
125
+ import { type CommandStructure, ephemeralFollowUpResponse, type StelliaClient } from "@stelliajs/framework";
126
126
  import { type ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
127
127
 
128
128
  export default {
129
129
  data: new SlashCommandBuilder()
130
130
  .setName("ping"),
131
131
  async execute(client: StelliaClient, interaction: ChatInputCommandInteraction<"cached">) { // All interactions are cached
132
- await interaction.reply("Pong!");
132
+ await ephemeralFollowUpResponse(interaction, "Pong!", true); // Response is ephemeral and deleted after 60 seconds
133
133
  }
134
134
  } as CommandStructure;
135
135
  ```
@@ -108,7 +108,7 @@ export class StelliaUtils {
108
108
  handleSelectMenuInteraction = async (interaction) => {
109
109
  try {
110
110
  const interactionSelectMenu = interaction;
111
- const selectMenu = this.client.managers.modals?.get(interactionSelectMenu.customId);
111
+ const selectMenu = this.client.managers.selectMenus?.get(interactionSelectMenu.customId);
112
112
  if (!selectMenu)
113
113
  return;
114
114
  await selectMenu.execute(this.client, interactionSelectMenu);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stelliajs/framework",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -12,6 +12,8 @@
12
12
  },
13
13
  "author": "Tweenty_",
14
14
  "license": "ISC",
15
+ "description": "A framework for simplify the creation of discord bots",
16
+ "keywords": ["discord", "bot", "discordjs", "typescript", "framework"],
15
17
  "dependencies": {
16
18
  "discord-api-types": "^0.37.92",
17
19
  "discord.js": "^14.15.3"