We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3e194c commit 2076b2dCopy full SHA for 2076b2d
1 file changed
src/bot/bot.ts
@@ -231,10 +231,12 @@ client.on(Events.MessageCreate, async (message) => {
231
const label = `New code${unredeemedCodes.length > 1 ? 's' : ''} detected: ${codeList}`;
232
const u = await client.users.fetch(id);
233
await u.send(`🔔 ${label}`);
234
+ } catch { /* DM delivery failure is non-critical */ }
235
+ finally {
236
if (i < recipientIds.length - 1) {
237
await new Promise<void>((resolve) => setTimeout(resolve, 500));
238
}
- } catch { /* DM delivery failure is non-critical */ }
239
+ }
240
241
} catch (err) {
242
logger.error('Unexpected error in code-detection DM fan-out:', err);
0 commit comments