mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 23:38:32 +00:00
feat: blank out tags and description
This commit is contained in:
parent
dbda5f694a
commit
8c48ac950e
1 changed files with 6 additions and 2 deletions
|
@ -350,13 +350,17 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) =
|
|||
const fetchedSticker = await fetchSticker(favoriteableId);
|
||||
|
||||
// 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) {
|
||||
return {
|
||||
"id": sticker?.id,
|
||||
"name": sticker?.name,
|
||||
"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",
|
||||
"available": true,
|
||||
"guild_id": 0
|
||||
|
|
Loading…
Add table
Reference in a new issue