โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹†
โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹†
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
what to console ?
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
i am fixing all things since 5 hours
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
please please can you see full code and tell why its acting
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
bro idk what happened in the codes but now its not updating and my brain is dying
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
kk
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
do you mean like this ??
return {
type: 2,
metadata: {
channel: message.mentions.channels.first() || client_guild.channels.cache.get(value),
},
};
} else {
return action; // Keep the action unchanged
}
});
return {
type: 2,
metadata: {
channel: message.mentions.channels.first() || client_guild.channels.cache.get(value),
},
};
} else {
return action; // Keep the action unchanged
}
});
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
TypeError: Cannot read properties of undefined (reading 'metadata')
at Object.execute (/home/container/commands/automod/setpunishment.js:107:74)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of undefined (reading 'metadata')
at Object.execute (/home/container/commands/automod/setpunishment.js:107:74)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
const logChannel = message.mentions.channels.first() || client_guild.channels.cache.get(value);

if (!logChannel) {
return message.channel.send('Please provide a valid log channel (mention or ID).');
}

const existingActions = rule.actions;
const updatedActions = [
{
type: 1,
metadata: existingActions[0].metadata,
},
{
type: 2, // Alert channel action
metadata: {
channel: logChannel,
},
},
{
type: 3, // Timeout action
metadata: existingActions.find(action => action.type === 3).metadata,
},
];

await rule.edit({
actions: updatedActions,
});
const logChannel = message.mentions.channels.first() || client_guild.channels.cache.get(value);

if (!logChannel) {
return message.channel.send('Please provide a valid log channel (mention or ID).');
}

const existingActions = rule.actions;
const updatedActions = [
{
type: 1,
metadata: existingActions[0].metadata,
},
{
type: 2, // Alert channel action
metadata: {
channel: logChannel,
},
},
{
type: 3, // Timeout action
metadata: existingActions.find(action => action.type === 3).metadata,
},
];

await rule.edit({
actions: updatedActions,
});
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
i tried this but my brain is dying over and over
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
how
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
1 more question like i am making 2 different command 1 for timeout and 1 for log if i enable timeout then it remove log and if i add log it remove timeout how to fix it
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
Oh wait ig i have declared custom message in wrong action it should be in timeout action
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
and that custom message is not working
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
k
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
await rule.edit({
actions: [
{
type: 1,
metadata: {
channel: logChannel,
durationSeconds: 0, // Set to 0 to disable message blocking
customMessage: `This message has been blocked due to a blacklisted word.`,
},
},
{
type: 2, // Alert channel action
metadata: {
channel: logChannel,
},
},
{
type: 3, // Timeout action
metadata: {
durationSeconds: durationSeconds,
},
},
],
});
await rule.edit({
actions: [
{
type: 1,
metadata: {
channel: logChannel,
durationSeconds: 0, // Set to 0 to disable message blocking
customMessage: `This message has been blocked due to a blacklisted word.`,
},
},
{
type: 2, // Alert channel action
metadata: {
channel: logChannel,
},
},
{
type: 3, // Timeout action
metadata: {
durationSeconds: durationSeconds,
},
},
],
});
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
why its saying unknown
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
yeap it worked just 1 thing the audit logs is shit
35 replies
DIAdiscord.js - Imagine an app
Created by โ‹†หšเฟ” Soul ๐œ—๐œšหšโ‹† on 8/12/2023 in #djs-questions
unable to make changes
kk
35 replies