Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sticker #1032

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
22 changes: 15 additions & 7 deletions actions/store_message_info_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
'Replied-to Message Channel ID',
'Replied-to Message Guild ID',
'Is Reply to Message?',
'Message Stickers Count', // Added option for sticker count
];
return `${presets.getMessageText(data.message, data.varName)} - ${info[parseInt(data.info, 10)]}`;
},
Expand Down Expand Up @@ -136,6 +137,9 @@
break;
case 27:
dataType = 'Boolean';
break;

Check failure on line 140 in actions/store_message_info_MOD.js

View workflow job for this annotation

GitHub Actions / ESLint

Replace `↹↹` with `········`
case 28: // Added case for storing sticker count
dataType = 'Number';
break;
default:
break;
Expand Down Expand Up @@ -190,8 +194,8 @@
<option value="4">Message Channel</option>
<option value="5">Message Timestamp</option>
<option value="6">Message Is Pinned?</option>
<option value="7">Message Is TTS?</option>
<option value="8">Message Attachments List</option>
<option value="7">Message Is TTS?</option>
<option value="8">Message Attachments List</option>
<option value="9">Message Edits</option>
<option value="12">Messages Reactions Count</option>
<option value="13">Messages Mentioned Users List</option>
Expand All @@ -204,11 +208,12 @@
<option value="20">Message Type</option>
<option value="21">Message Webhook ID</option>
<option value="22">Message Embed Object</option>
<option value="23">Message Reference Object</option>
<option value="24">Replied-to Message ID</option>
<option value="25">Replied-to Message Channel ID</option>
<option value="26">Replied-to Message Guild ID</option>
<option value="27">Is Reply to Message?</option>
<option value="23">Message Reference Object</option>
<option value="24">Replied-to Message ID</option>
<option value="25">Replied-to Message Channel ID</option>
<option value="26">Replied-to Message Guild ID</option>
<option value="27">Is Reply to Message?</option>
<option value="28">Message Stickers Count</option> <!-- Added option for sticker count -->
</select>
</div>

Expand Down Expand Up @@ -324,6 +329,9 @@
case 27:
result = msg.type === 'REPLY' && msg.reference?.messageId !== undefined;
break;
case 28: // Added case for storing sticker count
result = msg.stickers ? msg.stickers.size : 0;
break;
default:
break;
}
Expand Down
Loading