#DMs not working

1 messages · Page 1 of 1 (latest)

shrewd narwhal
#

Hey there, I added a localization description to every command, though now they're not showing up in DMs even they're enabled for them. What did I do wrong perhaps?

jade rain
#

tried redeploying the commands yet?

shrewd narwhal
shrewd narwhal
jade rain
#

Care to show some code?

shrewd narwhal
#

perhaps how I register my commands?

jade rain
#

Also one command example

shrewd narwhal
# jade rain Yes
            await rest.put(
                Routes.applicationCommands(CLIENT_ID as string), {
                    body: commands
                },
            );
import axios from "axios";
import { SlashCommandBuilder, ChatInputCommandInteraction } from "discord.js";
import { Kiyori } from "../struct/Client";

module.exports = {
    data: new SlashCommandBuilder()
        .setName("neko")
        .setDescription("Displays a neko image.")
        .setDescriptionLocalizations({
            "de": "Zeigt ein neko Bild.",
            "ja": "ネコの画像を表示します。",
            "fr": "Affiche une image neko.",
            "es-ES": "Muestra una imagen neko."
        })
        .setDMPermission(true),

    async execute(interaction: ChatInputCommandInteraction, client: Kiyori) {
        await interaction.deferReply();

        const result = await axios.get("http://api.nekos.fun:8080/api/neko");
        const image = result.data.image;

        await interaction.editReply({ files: [image] });
    }
}
jade rain
#

i think im lost, sorry

#

global commands being available in dms by default is already preceding .setDMPermission(true), so im not sure why its not showing up there already

#

have you tried redeploying these commands to a new token and check if it works there?

shrewd narwhal