Attachment sending in wrong channel.
Hi, the attachment is sending in the interaction channel and not logging channel. Anyone know why?
8 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
This is the logging schema:
import { model, Schema } from "mongoose";
export default model(
"Logging",
new Schema({
GuildID: String,
ChannelID: String,
enabled: Boolean,
})
);
Thanks for your reply.
I tried this,
However nothing was logged.
Do you know what I can do to try and diagnose it?
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
• Once you do, log relevant values and if-conditions
• More sophisticated debugging methods are breakpoints and runtime inspections: learn moreI don't understand, because it runs the bit after the console.log. It makes the transcript.
omg tysm
it was saved but gitpod was being strange, made a new instance and it works.
Quick question though, is there an easy way to upload HTML files to the bot (if it's not hosted on VPS) so that it can host hem?
It's hosted on Railway.app. I can enable the web host for it.
Maybe the transcripts can be put on the GitHub private then separately hosted as a website?