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: 3 Ziyaretçi
donpato.com anadolu escort maltepe escort anadolu escort bostancı escort kadıköy escort ataşehir escort ümraniye escort kartal escort pendik escort bostancı escort maltepe escort ataşehir escort kadıköy escort kurtköy escort istanbul escort kurtköy escort tuzla escort kartal escort pendik escort maltepe escort sex hikayesi türk porno köpek ilanları giriş iphone ekran telefon yedek parça php shell php shell php shell php shell hacklink