begin dayz-armbands
This commit is contained in:
6 files changed
+130
-84
No files matched your search
@@ -1,71 +0,0 @@
|
||||
const { ModalBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "application",
|
||||
debug: false,
|
||||
global: false,
|
||||
description: "manage or create applications",
|
||||
usage: "[cmd] [opts]",
|
||||
permissions: {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: [],
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: "create",
|
||||
description: "Create a new application form",
|
||||
type: 1,
|
||||
value: "create",
|
||||
options: [
|
||||
{
|
||||
name: "title",
|
||||
description: "Application Title",
|
||||
value: "title",
|
||||
type: 3,
|
||||
max: 50,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "description",
|
||||
description: "Application Description",
|
||||
value: "description",
|
||||
type: 3,
|
||||
max: 250,
|
||||
required: true,
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
SlashCommand: {
|
||||
/**
|
||||
*
|
||||
* @param {require("../structures/QuarksBot")} client
|
||||
* @param {import("discord.js").Message} message
|
||||
* @param {string[]} args
|
||||
* @param {*} param3
|
||||
*/
|
||||
run: async (client, interaction, args, start) => {
|
||||
if (args[0].name == 'create') {
|
||||
// Create the modal
|
||||
const modal = new ModalBuilder()
|
||||
.setCustomId('model-test')
|
||||
.setTitle(args[0].options[0].value);
|
||||
|
||||
// Add components to modal
|
||||
|
||||
// Create the text input components
|
||||
const favoriteColorInput = new TextInputBuilder()
|
||||
.setCustomId('favoriteColorInput')
|
||||
// The label is the prompt the user sees for this input
|
||||
.setLabel(args[0].options[1].value)
|
||||
// Short means only a single line of text
|
||||
.setStyle(TextInputStyle.Paragraph);
|
||||
|
||||
// An action row only holds one text input,
|
||||
// so you need one action row per text input.
|
||||
const firstActionRow = new ActionRowBuilder().addComponents(favoriteColorInput);
|
||||
const secondActionRow = new ActionRowBuilder().addComponents(hobbiesInput);
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
const { TextInputBuilder, ModalBuilder, ActionRowBuilder, TextInputStyle } = require('discord.js');
|
||||
const bitfieldCalculator = require('discord-bitfield-calculator');
|
||||
|
||||
module.exports = {
|
||||
name: "",
|
||||
debug: false,
|
||||
global: false,
|
||||
description: "",
|
||||
usage: "[cmd] [opts]",
|
||||
permissions: {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: [],
|
||||
},
|
||||
options: [
|
||||
|
||||
],
|
||||
SlashCommand: {
|
||||
/**
|
||||
*
|
||||
* @param {require("../structures/QuarksBot")} client
|
||||
* @param {import("discord.js").Message} message
|
||||
* @param {string[]} args
|
||||
* @param {*} param3
|
||||
*/
|
||||
run: async (client, interaction, args) => {
|
||||
|
||||
},
|
||||
},
|
||||
Interactions: {}
|
||||
}
|
||||
+5
-5
@@ -33,7 +33,7 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
name: "credits",
|
||||
description: "Applicantz Credits",
|
||||
description: "DayzArmbands Credits",
|
||||
value: "credits",
|
||||
type: 1,
|
||||
},
|
||||
@@ -56,7 +56,7 @@ module.exports = {
|
||||
run: async (client, interaction, args) => {
|
||||
if (args[0].name == 'version') {
|
||||
const versionEmbed = new EmbedBuilder()
|
||||
.setTitle(`Current Applicantz Version`)
|
||||
.setTitle(`Current DayzArmbands Version`)
|
||||
.setDescription(client.config.Version);
|
||||
|
||||
return interaction.send({ embeds: [versionEmbed] });
|
||||
@@ -72,7 +72,7 @@ module.exports = {
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setDescription(`${Commands.join("\n")}
|
||||
|
||||
Applicantz Version: v${client.config.Version}`);
|
||||
DayzArmbands Version: v${client.config.Version}`);
|
||||
if (!args[0].options[0]) return interaction.send({ embeds: [Embed] });
|
||||
else {
|
||||
let cmd =
|
||||
@@ -114,9 +114,9 @@ module.exports = {
|
||||
} else if (args[0].name == 'support') {
|
||||
const supportEmbed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setDescription(`**__Applicantz Support__**
|
||||
.setDescription(`**__DayzArmbands Support__**
|
||||
|
||||
Are you experiencing troubles with Applicantz?
|
||||
Are you experiencing troubles with DayzArmbands?
|
||||
Do you have questions or concerns?
|
||||
Do you require help to use the bot?
|
||||
Do you have a feature you'd like to see?
|
||||
|
||||
Reference in new issue
Block a user