feat: blank out tags and description

This commit is contained in:
Haruka 2024-12-18 19:02:45 +02:00
parent dbda5f694a
commit 8c48ac950e
No known key found for this signature in database
GPG key ID: C0F0780E671DB7D5

View file

@ -350,13 +350,17 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) =
const fetchedSticker = await fetchSticker(favoriteableId); const fetchedSticker = await fetchSticker(favoriteableId);
// Workaround for incase the sticker or the server it's from is deleted. // Workaround for incase the sticker or the server it's from is deleted.
// Allows the sticker to still be cloned, albeit less accurately. // Allows the sticker to still be cloned.
if (fetchedSticker === undefined) { if (fetchedSticker === undefined) {
return { return {
"id": sticker?.id, "id": sticker?.id,
"name": sticker?.name, "name": sticker?.name,
"format_type": sticker?.format_type, "format_type": sticker?.format_type,
"tags": sticker?.name, // Discord has a character limit of at least 1 for tags (aka related emoji)
// for some reason.
// They don't check for spaces.
"tags": " ",
"description": "",
"type": "2", "type": "2",
"available": true, "available": true,
"guild_id": 0 "guild_id": 0