waengine 1.0.10 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/message.js CHANGED
@@ -301,6 +301,25 @@ export class Message {
301
301
  return await this.reply(mentionText, allMembers);
302
302
  }
303
303
 
304
+ // Mention mit Typing - Neue Funktion für bessere UX
305
+ async slowTypeWithMention(text, userJid) {
306
+ const senderName = userJid.split('@')[0];
307
+ const mentionText = text.replace('@user', `@${senderName}`);
308
+ return await this.slowType(mentionText, [userJid]);
309
+ }
310
+
311
+ async quickTypeWithMention(text, userJid) {
312
+ const senderName = userJid.split('@')[0];
313
+ const mentionText = text.replace('@user', `@${senderName}`);
314
+ return await this.quickType(mentionText, [userJid]);
315
+ }
316
+
317
+ async normalTypeWithMention(text, userJid) {
318
+ const senderName = userJid.split('@')[0];
319
+ const mentionText = text.replace('@user', `@${senderName}`);
320
+ return await this.normalType(mentionText, [userJid]);
321
+ }
322
+
304
323
  // ===== PERMISSION SYSTEM =====
305
324
 
306
325
  async isAdmin() {