ir
ir
DIAdiscord.js - Imagine an app
Created by Melo on 5/22/2024 in #djs-questions
Automod command
give me one second, im gonna try and do this via my bot and see what i can find out
45 replies
DIAdiscord.js - Imagine an app
Created by Melo on 5/22/2024 in #djs-questions
Automod command
hmmm try { channelId: logChannel.id }
45 replies
DIAdiscord.js - Imagine an app
Created by Melo on 5/22/2024 in #djs-questions
Automod command
No description
45 replies
DIAdiscord.js - Imagine an app
Created by Melo on 5/22/2024 in #djs-questions
Automod command
pass the id here
actions: [{ type: 1, metadata: { channel: logChannel.id, durationSeconds: 10, customMessage: `This message was prevented by Atoms' AutoMod.` } }]
actions: [{ type: 1, metadata: { channel: logChannel.id, durationSeconds: 10, customMessage: `This message was prevented by Atoms' AutoMod.` } }]
^ change your current code to this
45 replies
DIAdiscord.js - Imagine an app
Created by Melo on 5/22/2024 in #djs-questions
Automod command
have you tried passing logChannel.id instead of just the logChannel?
45 replies
Registering Commands Issue
oh I also get
Error when loading 'C:\Users\iratm\OneDrive\Desktop\Unnamed\src\commands\moderation\TempBan.ts': 9 | LoaderErrorType2["UnknownStore"] = "UNKNOWN_STORE";
Error when loading 'C:\Users\iratm\OneDrive\Desktop\Unnamed\src\commands\moderation\TempBan.ts': 9 | LoaderErrorType2["UnknownStore"] = "UNKNOWN_STORE";
not sure if that's related to the issue I made this thread about but
12 replies
Registering Commands Issue
I've set my target to both ES2020 and NextNode and I still get the error, the commands still register and work, that error is pretty annoying though, hogging up most of my console
12 replies
Registering Commands Issue
let me check
12 replies
Registering Commands Issue
I have mine set as NodeNext
12 replies
Registering Commands Issue
Never mind - seems running the TS file directly causes it to mess up, but running the JS file works 👍
12 replies