Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
07-06-2022, 02:36 AM
İzmox Theme
Forum Üyesi
*
151
(Konular)
725
(Mesajlar)
Dec 2020
(Kayıt Tarihi)
16
(Rep Puanı)
#1
Alıntı:
Kod:
Main
client.on('messageCreate', async message => {

    if (message.content === '!destek') {
    let kisi = message.member
        const row = new MessageActionRow()
            .addComponents(
                new MessageButton()
                    .setCustomId('success')
                    .setLabel('destek')
                    .setStyle('SUCCESS'),
            );

        await message.reply({ content: 'rolünü seç bakalım!', components: [row] });
    const collector = message.channel.createMessageComponentCollector({ time: 15000 });

collector.on('collect', async i => {
    if (i.customId === 'success') {
        await i.update({ content: 'butona tıkla', components: [] });
    let channelName = message.author.username
    let rol = "destek ekibi"
message.guild.channels.create(channelName, {
            type: "GUILD_TEXT",
           permissionOverwrites: [
        {
            id: message.guild.roles.everyone,
            deny: ["VIEW_CHANNEL"],
        },
        {
            id: message.author.id,
            allow: ["VIEW_CHANNEL"],
        },
                     {
            id: rol,
            allow: ["VIEW_CHANNEL"],
        },
    ],
        });    }

});
  }
});
07-06-2022, 05:49 AM
İzmox Theme
Forum Üyesi
*
202
(Konular)
591
(Mesajlar)
Oct 2020
(Kayıt Tarihi)
81
(Rep Puanı)
#2
İçerik için teşekkürler Konuya görsel ekleyebilirsenız daha net anlaşılabilir



Görüntüleyenler: 2 Ziyaretçi
kadıköy escort ataşehir escort kadıköy escort bostancı escort ümraniye escort maltepe escort kadıköy escort ataşehir escort bostancı escort kartal escort maltepe escort pendik escort pendik escort ümraniye escort ataşehir escort köpek pergola php shell php shell php shell hacklink