#DMs not working
1 messages · Page 1 of 1 (latest)
tried redeploying the commands yet?
yup
do you have any other solution perhaps, because I was not able to fix it yet.
Care to show some code?
what exactly would you like to see?
perhaps how I register my commands?
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] });
}
}
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?
sorry for the late response, yea I did that.