public async run(interaction: ButtonInteraction) {
if (interaction.inCachedGuild()) {
const voiceChannel = interaction.member.voice
if (voiceChannel.channelId) {
const voiceChannel = await interaction.member.voice.channel?.createInvite()
interaction.reply(
`${game} ${tags.map((tag) => tag)}\n\n\n${message.author} is inviting you to a game ${
voiceChannel?.url
}\n\n\n**${msg}**`
)
}
}
public async run(interaction: ButtonInteraction) {
if (interaction.inCachedGuild()) {
const voiceChannel = interaction.member.voice
if (voiceChannel.channelId) {
const voiceChannel = await interaction.member.voice.channel?.createInvite()
interaction.reply(
`${game} ${tags.map((tag) => tag)}\n\n\n${message.author} is inviting you to a game ${
voiceChannel?.url
}\n\n\n**${msg}**`
)
}
}