@power-bots/powerbotlibrary 0.5.0 → 0.5.1
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 +2 -2
- package/dist/commands/other/config.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img width="125" alt="PowerBots" src="https://github.com/user-attachments/assets/
|
|
2
|
+
<img width="125" alt="PowerBots" src="https://github.com/user-attachments/assets/0c231b99-1dbc-4a5e-b748-ca6da49c59df" />
|
|
3
3
|
<h1>PowerBotsLibrary</h1>
|
|
4
4
|
</div>
|
|
5
5
|
PowerBotsLibrary is the core of all Power Bots and makes up the foundation to share code.
|
|
@@ -18,4 +18,4 @@ bot.setup(__dirname)
|
|
|
18
18
|
bot.run()
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
There is ***some*** documnetation [here](https://github.com/Power-Bots/PowerBotLibrary/wiki)
|
|
@@ -45,6 +45,8 @@ module.exports = {
|
|
|
45
45
|
let id;
|
|
46
46
|
switch (scope) {
|
|
47
47
|
case config_1.ConfigTypes.Guild:
|
|
48
|
+
if (!interaction.memberPermissions.has(discord_js_1.PermissionFlagsBits.ManageGuild))
|
|
49
|
+
return yield interaction.reply({ content: "❌ `Manage Server` permission required" });
|
|
48
50
|
id = interaction.guildId;
|
|
49
51
|
break;
|
|
50
52
|
case config_1.ConfigTypes.User:
|