KennoBe
KennoBe
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
will try it later, but I'm confident that it should work now 🙂
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
yeah changed it already after asking you 😄
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
like this?
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
damn, thanks 😄
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
do i need to close it after ..-actions?
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
what 😦
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
yeah I was happy that automod is already documented but was still a pain to create the commands to create ones 😄
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
I would let this post open, that maybe it can be updated when discord.js has integrated this feature? 🙂
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
you're right
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
So if I want to block PM for 24h, it should look like this?
const now = new Date();
const tomorrow = new Date(now.getTime() + (24 * 60 * 60 * 1000));
const isoTimestamp = tomorrow.toISOString();
const body = {
"dms_disabled_until": isoTimestamp
};
client.rest.put("/guilds/{guildId}/incident-actions", { body } );
const now = new Date();
const tomorrow = new Date(now.getTime() + (24 * 60 * 60 * 1000));
const isoTimestamp = tomorrow.toISOString();
const body = {
"dms_disabled_until": isoTimestamp
};
client.rest.put("/guilds/{guildId}/incident-actions", { body } );
23 replies
DIAdiscord.js - Imagine an app
Created by KennoBe on 3/18/2024 in #djs-questions
incident-actions
Thanks, so it's like my attached screenshot 😄 i didn't know i can call rest directly, thanks for that!
23 replies