LEveLiQ
LEveLiQ
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
fixed by creating an entirely new app because discord being discord
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
should i create a new app in dev portal?
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
and the global command still hasn't got updated, it's been 3 days
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
and there are duplicates (3 app + 6 guild apparently?) which irritates me
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
yeah, and it starts appearing randomly
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
you mean the discord app, right? done it a thousand times
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
only 3 are visible
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
weird
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
just added commands.length and data.length like the one in guide Logged in as <bot name>! Started refreshing 6 application (/) commands. Successfully reloaded 6 application (/) commands.
17 replies
DIAdiscord.js - Imagine an app
Created by LEveLiQ on 12/19/2024 in #djs-questions
slash commands not registering
I don't get what you're trying to say by "deploy the commands again"
export const registerCommands = async (client: Client) => {
const rest = new REST({ version: '9' }).setToken(process.env.TOKEN!);
try {
await rest.put(
Routes.applicationGuildCommands(client.user!.id, process.env.GUILD_ID!),
{ body: commands }
);
} catch (error) {
console.error(error);
}
};
export const registerCommands = async (client: Client) => {
const rest = new REST({ version: '9' }).setToken(process.env.TOKEN!);
try {
await rest.put(
Routes.applicationGuildCommands(client.user!.id, process.env.GUILD_ID!),
{ body: commands }
);
} catch (error) {
console.error(error);
}
};
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
]
});

client.once('ready', async () => {
console.log(`Logged in as ${client.user?.tag}!`);
await registerCommands(client);
});

client.on('interactionCreate', async (interaction: Interaction) => {
if (!interaction.isCommand() && !interaction.isAutocomplete()) return;
await handleInteraction(interaction);
});

client.login(process.env.TOKEN);
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
]
});

client.once('ready', async () => {
console.log(`Logged in as ${client.user?.tag}!`);
await registerCommands(client);
});

client.on('interactionCreate', async (interaction: Interaction) => {
if (!interaction.isCommand() && !interaction.isAutocomplete()) return;
await handleInteraction(interaction);
});

client.login(process.env.TOKEN);
this is what i did
17 replies
VVALORANT
Created by ᗰᖇᗰᑌᖴᖴIᑎ on 10/18/2024 in #community-help
Color Valorant Bug
might try it one day and grief the entire match /j
21 replies
VVALORANT
Created by ᗰᖇᗰᑌᖴᖴIᑎ on 10/18/2024 in #community-help
Color Valorant Bug
that look sick af
21 replies
VVALORANT
Created by ᗰᖇᗰᑌᖴᖴIᑎ on 10/18/2024 in #community-help
Color Valorant Bug
actually
21 replies
VVALORANT
Created by lust on 10/18/2024 in #community-help
ping issues at night
:kohane_shivering:
110 replies
VVALORANT
Created by lust on 10/18/2024 in #community-help
ping issues at night
:val_HeyApple:
110 replies
VVALORANT
Created by lust on 10/18/2024 in #community-help
ping issues at night
mans about to doxx him
110 replies