const supportRoleId = interaction.options.getRole('role', true).id
const logChannelId = interaction.options.getChannel('log-channel', true).id
const guild = interaction.guild
const membersWithRole = guild.roles.cache.get(supportRoleId).members
for (const [memberId, member] of membersWithRole) {
console.log(member.user.username)
}
const supportRoleId = interaction.options.getRole('role', true).id
const logChannelId = interaction.options.getChannel('log-channel', true).id
const guild = interaction.guild
const membersWithRole = guild.roles.cache.get(supportRoleId).members
for (const [memberId, member] of membersWithRole) {
console.log(member.user.username)
}