fix/retry-sending-failed-msgs #1

Merged
ChrisChrome merged 5 commits from fix/retry-sending-failed-msgs into main 2026-06-12 10:01:24 -06:00
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 0ccebafb1d - Show all commits

View file

@ -302,6 +302,14 @@
"name": "devtest",
"description": "[BOT OWNER ONLY] Test the bot with a sample message",
"default_member_permissions": 0,
"type": 1
"type": 1,
"options": [
{
"name": "randstr",
"description": "override random string in test message for testing",
"type": 3,
"required": false
}
]
}
]

View file

@ -1439,6 +1439,8 @@ discord.on("interactionCreate", async (interaction) => {
interaction.editReply({ content: output, ephemeral: true });
//2. directly trigger handleDiscord with a fake message for the fake room.
let randStr = interaction.options.getString("randstr") || Math.random().toString(36).substring(2, 15)
handleDiscord(require("./testmsg.json"));
output += "Triggered handleDiscord with test message.\n";
interaction.editReply({ content: output, ephemeral: true });