@power-bots/powerbotlibrary 0.0.2 → 0.0.3

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
@@ -6,13 +6,13 @@ PowerBotsLibrary is the core of all Power Bots and makes up the foundation to sh
6
6
 
7
7
  ## Install
8
8
  ```
9
- npm install Power-Bots/PowerBotLibrary
9
+ npm install @power-bots/powerbotlibrary
10
10
  ```
11
11
 
12
12
  ## Usage
13
13
  ```typescript
14
- import { Bot } from "powerbotlibrary"
15
- import { db } from "powerbotlibrary" // If you want to use database
14
+ import { Bot } from "@power-bots/powerbotlibrary"
15
+ import { db } from "@power-bots/powerbotlibrary" // If you want to use database
16
16
 
17
17
  const bot = new Bot(__dirname)
18
18
  ```
package/dist/main.js CHANGED
@@ -110,7 +110,7 @@ class Bot {
110
110
  }
111
111
  catch (error) {
112
112
  this.log.error(`${error}`);
113
- const errorMessage = { content: 'There was an error while executing this command!', ephemeral: true };
113
+ const errorMessage = { content: 'There was an error while executing this command!', flags: [discord_js_1.MessageFlags.Ephemeral] };
114
114
  if (interaction.replied || interaction.deferred) {
115
115
  yield interaction.followUp(errorMessage);
116
116
  }
@@ -125,4 +125,3 @@ class Bot {
125
125
  }
126
126
  }
127
127
  exports.Bot = Bot;
128
- log_1.Log.prototype.warn("osdcnf");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@power-bots/powerbotlibrary",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/main.d.ts",
6
6
  "dependencies": {