mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-03 23:36:23 +02:00
corrige bug in tasks command
This commit is contained in:
@@ -20,9 +20,13 @@ module.exports = {
|
||||
|
||||
const tasksChunks = tasks.match(/.{1,2000}/g);
|
||||
|
||||
tasksChunks.forEach((chunk: string) => {
|
||||
message.edit(`# Liste des tâches :${chunk}`);
|
||||
});
|
||||
if (tasksChunks) {
|
||||
tasksChunks.forEach((chunk: string) => {
|
||||
message.edit(`# Liste des tâches :${chunk}`);
|
||||
});
|
||||
} else {
|
||||
message.edit(`# Liste des tâches :${tasks}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user