[WIP] Trading and TradingStore implementation 1

This commit is contained in:
2022-11-22 17:15:48 +01:00
parent 5be326d56a
commit 42797eb90e
5 changed files with 266 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ const { SlashCommandBuilder, ComponentType, ActionRowBuilder, ButtonBuilder, But
const { customAlphabet } = require("nanoid");
const { Card, User } = require("../models");
const { UserUtils, CardUtils, GeneralUtils } = require("../util");
const stores = require("../stores");
require('dotenv').config();
module.exports = {
@@ -24,6 +25,7 @@ module.exports = {
{ name: 'add_primary', value: 'add_primary' },
{ name: 'add_secondary', value: 'add_secondary' },
{ name: 'toggle_maintenance', value: 'toggle_maintenance' },
{ name: 'store', value: 'store' },
)
)
.addStringOption((option) =>
@@ -144,6 +146,12 @@ module.exports = {
ephemeral: false
});
break;
case "store":
interaction.editReply({
content: `${JSON.stringify(stores)}`,
ephemeral: false
});
break;
default:
interaction.editReply({
content: `Your permission level is ${await UserUtils.getPermissionLevel(interaction.member)}`,