1
1
DIdiscord.js - Imagine ❄
Created by Static™ on 10/20/2024 in #djs-questions
Bot that listens to code words
You can make it like this
const secretWord = 'SecretWord';

if (message.author.bot) return;

if (message.content.includes(secretWord)) {
message.channel.send('Your text!');
}
const secretWord = 'SecretWord';

if (message.author.bot) return;

if (message.content.includes(secretWord)) {
message.channel.send('Your text!');
}
6 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Activity isn`t showing
Okay, thank you
10 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Activity isn`t showing
Is it possible to make it so that there is a button or hyperlink to the site?
10 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
ok ok
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
aight then
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
damn
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
no, I want to know how to store deleted messages from the ticket to then send them in transcript
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
No description
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
like this
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
Because I`ll send the file as attacment into logs
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
and store them in some kind of array like
const deletedMessages = [];
const deletedMessages = [];
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Is there a way to save deleted messages and use them in transcript?
I want to make it like this, but i`m not sure if its the best way
client.on('messageDelete', message => {
deletedMessages.push({
content: message.content,
author: message.author.tag,
createdTimestamp: message.createdTimestamp,
deletedTimestamp: Date.now()
});
});
client.on('messageDelete', message => {
deletedMessages.push({
content: message.content,
author: message.author.tag,
createdTimestamp: message.createdTimestamp,
deletedTimestamp: Date.now()
});
});
19 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
Ty tho
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
and it works
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
I`m a dumbass, I fixed it. I forgot to add row = null in logAction Was like this:
async function logAction(client, settings, interaction, embed, attachment, row )
async function logAction(client, settings, interaction, embed, attachment, row )
Now:
async function logAction(client, settings, interaction, embed, attachment = null, row = null)
async function logAction(client, settings, interaction, embed, attachment = null, row = null)
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
is it what you needed?
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
at the end there is catch (error) {
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
What else do you need?
18 replies
DIdiscord.js - Imagine ❄
Created by 1 on 10/14/2024 in #djs-questions
Log error
No description
18 replies