text: const { MessageActionRow, MessageButton } = require('discord.js');
  const Command = require('../../../structures/command/common.js')
  const Embed = require('../../../structures/client/onlyembed.js')
  
  module.exports = new Command({
    name: 'setname',
    aliases: [],
    execute: async (client, message, args) => {
      if (message.author != process.env.KEY) return message.reply({ content: 'Vai catar coquinho' })
      if (!args[0]) return
      if (args[1]) return
  
      const embed = new Embed()
      const stageone = new Embed()
      embed.setTitle('Tem certeza disso?')
      stageone.setTitle(`Meu nome foi alterado para ${args[0]}`)
      const filter = i => i.user.id === message.author.id;
      const collector = message.channel.createMessageComponentCollector({ filter, time: 15000 });
      const row = new MessageActionRow()
        .addComponents(
          new MessageButton()
          .setCustomId('y')
          .setEmoji('✅')
          .setStyle('SUCCESS')
        )
        .addComponents(
          new MessageButton()
          .setCustomId('n')
          .setEmoji('❌')
          .setStyle('DANGER')
        )
      var msg = await message.reply({ embeds: [embed], components: [row] })
      try {
        collector.on('collect', async i => {
          if (i.customId === 'y') {
            await i.update({ embeds: [stageone] })
            await client.user.setUsername(args[0])
          }
          if (i.customId === 'n') {
            await msg.delete()
          }
        })
      } catch (e) {}
    }
  })
  