const { SlashCommandBuilder, PermissionFlagsBits, ChatInputCommandInteraction } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() .setName('test') .setDescription('Test command') /** * @param {ChatInputCommandInteraction} interaction * */ async execute(interaction) { const inv = await interaction.channel.createInvite(); //Hovering over 'channel' shows the type but when you hover over 'createInvite' it just shows any console.log(inv.); //when i wrote 'inv.', no autocomplete options came up, such as 'url', etc. When Danial also tried this in their IDE, the same thing happened. }, };