feat: increase limit for history
Some checks failed
Node.js CI / Lint and Test (push) Failing after 45s
Code Analysis / SonarQube (push) Failing after 1m0s

This commit is contained in:
Naomi Carrigan 2025-05-22 15:15:25 -07:00
parent 9eabdc9a29
commit 2b1e54ad2b
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8

View File

@ -34,7 +34,7 @@ export const onMessage = async(message: Message): Promise<void> => {
if (!subbed) {
return;
}
const historyRequest = await message.channel.messages.fetch({ limit: 6 });
const historyRequest = await message.channel.messages.fetch({ limit: 20 });
const history = [ ...historyRequest.values() ];
const clearMessageIndex = history.findIndex((messageInner) => {
return (