Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/commands/General/issueCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const { EmbedBuilder, Colors, PermissionFlagsBits, SlashCommandBuilder } = require("discord.js")

module.exports = {
data: new SlashCommandBuilder()
.setName("issue")
.setDescription("Get instructions for creating an issue on FerrumC."),

userPermissions: [],
botPermissions: [ PermissionFlagsBits.SendMessages ],

run: async (client: any, interaction: any) => {
let embed = new EmbedBuilder()
.setTitle("Need to file an issue?")
.setDescription(
`Follow the quick guide on our issue page before submitting:\n` +
`\`1\` Check existing issues or the project board to avoid duplicates.\n` +
`\`2\` Pick the right template and include logs, versions, and repro steps.\n` +
`\`3\` Open the form here: [Issue Instructions](https://github.com/ferrumc-rs/ferrumc/issues/new/choose).`
)
.setColor(Colors.Blue)
.setThumbnail('https://www.ferrumc.com/images/logo_transparent.png')

return await interaction.reply({ embeds: [embed] })
}
}