get all mesages after a specific time
Im making a purge command but when i try to delete messages it says it can only delete messages that are younger than 14 days. so i made a date object and made it so the date was 14 days before the current date but it seems that the fetch function needs a snowflake, so how do i convert my date to a snowflake
code:
DT
d.js toolkit•199d ago
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPS
Syjalo•199d ago
You can simply do
channel.bulkDelete(amount, true)
K
Kay•199d ago
oh thx
Support server for discord.js, a Node.js module to interact with the Discord bot API.
58KMembers
View on DiscordWant results from more Discord servers?
More Postsusing rest API to update server bannerI'm trying to use the REST api to update my server banner.
The problem is that it seems to work - aboort erroron latest djsInvalid bitfield in audit log channel permissions eventHey,
I currently have the issue that errors like these are sent multiple times a minute into my bot'StatusHello Everyone.
I am currently having trouble on setting my bots status. Would anyone have a basic errors in my codehey so im trying to make a streaming selfbot but ive been getting loads of errors whenever i try to TTSi want to create a simple discord bot, that will read user messages in specific channel and bot willBot Crashing After a non permission user runds commandclient.on('messageCreate', (message) => {
// Check if the message starts with "!announce" and thExtending Guild, Channel, Member etc - TypeScriptIs it possible to extend upon Guild, Channel, Member etc objects?
I have tried extending them but