Skip to content

Commit

Permalink
(fix): bulkDelete returns undefined on collection (#68)
Browse files Browse the repository at this point in the history
* Fixes error arising from bulkdelete adding undefined element on the collection
  • Loading branch information
maisans-maid authored Jan 5, 2021
1 parent 041fe8a commit 9c935d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/moderation/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
const _id = Math.random().toString(36).slice(-7);
const uploadch = client.channels.cache.get(client.config.channels.uploads);

messages = messages.map(message => {
messages = messages.filter(Boolean).map(message => {
return [
`[${moment(message.createdAt).format('dddd, do MMMM YYYY hh:mm:ss')}]`,
`${message.author.tag} : ${message.content}\r\n\r\n`
Expand Down

0 comments on commit 9c935d0

Please sign in to comment.