{"size": 914, "ext": "js", "max_stars_repo_path": "slashKomutlar/temizle.js", "max_stars_repo_name": "YOZG4TLI/muzikke", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "slashKomutlar/temizle.js", "max_issues_repo_name": "YOZG4TLI/muzikke", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "slashKomutlar/temizle.js", "max_forks_repo_name": "YOZG4TLI/muzikke", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.5172413793, "max_line_length": 97, "alphanum_fraction": 0.5218818381}
module.exports = {
    name: "temizle",
    description: "Kuyruğu temizlersiniz.",
    execute: async (client, interaction) => {
        if (!interaction.member.voice.channel)
            return interaction.reply({
                content: `${interaction.member}` + " **Bir kanalda olmalısın** :x:",
                epehemral: true
            });

        const queue = await client.player.createQueue(interaction.guild, {
            metadata: interaction.channel
        });

        if (!queue?.playing)
            return interaction.reply({
                content: `${interaction.member}` + " **Birşey çalmıyor** :x:",
                epehemral: true
            });

        await queue.clear();

        return interaction.reply({
            content: `${interaction.member} **Kuyruk başarıyla temizlendi :white_check_mark:**`,
            epehemral: true
        });
    }
};
