-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e00850c
commit 5a8ce0b
Showing
6 changed files
with
182 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, SlashCommandBuilder, PermissionsBitField } = require("discord.js"); | ||
|
||
module.exports = { | ||
data: new SlashCommandBuilder().setName("createbyodembed").setDescription("dev command"), | ||
async execute(interaction) { | ||
if (interaction.isChatInputCommand() && interaction.channel.permissionsFor(interaction.user).has(PermissionsBitField.Flags.ManageGuild)) { | ||
let byodEmbed = new EmbedBuilder().setTitle("Bring Your Own Domain").setDescription("Do you wish you could just create your own domain without the hassle of hosting it yourself?\n\nBring Your Own Domain allows you to simply create a domain using any service, point it to us, and we'll host it for you!"); | ||
const link = new ButtonBuilder().setCustomId('byodA').setLabel('Click here to start!').setStyle(ButtonStyle.Primary); | ||
const button = new ActionRowBuilder().addComponents(link); | ||
await interaction.channel.send( | ||
{ embeds: [byodEmbed], | ||
components: [button], | ||
} | ||
); | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters