November Update
A variety of bot updates, verify setup, and match request info
This commit is contained in:
20
src/utils/componentBuilders.js
Normal file
20
src/utils/componentBuilders.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// src/utils/componentBuilders.js
|
||||
const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
|
||||
|
||||
function createMatchActionRow(matchId) {
|
||||
return new ActionRowBuilder()
|
||||
.addComponents(
|
||||
new ButtonBuilder()
|
||||
.setLabel('View Match Details')
|
||||
.setStyle(ButtonStyle.Link)
|
||||
.setURL(`https://www.vrbattles.gg/matches/${matchId}`),
|
||||
new ButtonBuilder()
|
||||
.setLabel('Join VRBattles Discord')
|
||||
.setStyle(ButtonStyle.Link)
|
||||
.setURL('https://discord.gg/j3DKVATPGQ')
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
createMatchActionRow
|
||||
};
|
||||
Reference in New Issue
Block a user