client.on('interactionCreate', async interaction => { if (interaction.isButton()) { if (interaction.customId === 'support') { await interaction.reply({ content: 'Created support channel.', ephemeral: true }); supportChannel(interaction.guild, interaction.member.id); } } });