Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.86k stars 3.76k forks source link

Embed Description Cut Off #9240

Closed friedrich-de closed 1 year ago

friedrich-de commented 1 year ago

Summary

Embed description is arbitrarily cut off.

Reproduction Steps

  1. Create embed with the following string as the embed.description https://pastebin.com/mKdNA9d5
  2. Send the embed

Result: Embed description is cut off.

Minimal Reproducible Code

@commands.command()
    async def send_test_embed(self, ctx: discord.ext.commands.Context):
        description = """1. **2019-11** `斬魔大聖デモンベイン` https://vndb.org/v231 | ID: `DEMON`
2. **2019-11-2020-02** `装甲悪鬼村正` https://vndb.org/v2016 | ID: `MURA`
3. **2019-12** `Steins;Gate` https://vndb.org/v2002 | ID: `SG`
4. **2020-01** `3days~満ちてゆく刻の彼方で~` https://vndb.org/v1085 | ID: `THREE`
5. **2020-02** `この世の果てで恋を唄う少女YU-NO` https://vndb.org/v1377 | ID: `YUNO`
6. **2020-03** `Musicus!` https://vndb.org/v22783 | ID: `MUSI`
7. **2020-03-2020-06** `ChuSinGura 46+1` https://vndb.org/v12260 | ID: `CHUSI`
8. **2020-04** `大迷宮&大迷惑` https://vndb.org/v19579 | ID: `DAIMEI`
9. **2020-05** `月影のシミュラクル` https://vndb.org/v19964 | ID: `TSUKIKAGE`
10. **2020-06** `生命のスペア` https://vndb.org/v19513 | ID: `SPARE`
11. **2020-07** `Phantom of Inferno` https://vndb.org/v45 | ID: `PHANT`
12. **2020-07-2020-09** `Dies Irae` https://vndb.org/v548 | ID: `DIES`
13. **2020-08** `ケモノ娘の育て方` https://vndb.org/v23281 | ID: `KEMO`
14. **2020-09** `Swan Song` https://vndb.org/v914 | ID: `SWAN`
15. **2020-10** `ATRI -My Dear Moments-` https://vndb.org/v27448 | ID: `ATRI`
16. **2020-10-2020-12** `Baldr Sky Dive1` https://vndb.org/v1306 | ID: `BSKY`
17. **2020-11** `魔法使いの夜` https://vndb.org/v777 | ID: `MAHOYO`
18. **2020-12** `沙耶の唄` https://vndb.org/v97 | ID: `SAYA`
19. **2021-01** `うたわれるもの` https://vndb.org/v3 | ID: `UTA`
20. **2021-01-2021-03** `凍京Necro` https://vndb.org/v13666 | ID: `NECRO`
21. **2021-02** `響野さん家はエロゲ屋さん!` https://vndb.org/v28871 | ID: `HIBIKI`
22. **2021-03** `殻ノ少女` https://vndb.org/v810 | ID: `KARANO`
23. **2021-04** `機関幕末異聞 ラストキャバリエ` https://vndb.org/v18145 | ID: `KIKAN`
24. **2021-04-2021-06** `白昼夢の青写真` https://vndb.org/v26987 | ID: `HAKUCHUU`
25. **2021-05** `終ノ空 remake` https://vndb.org/v28806 | ID: `TSUI`
26. **2021-06** `鬼哭街 The Cyber Slayer` https://vndb.org/v183 | ID: `KIKOKUGAI`
27. **2021-07** `刃鳴散らす` https://vndb.org/v430 | ID: `HANACHIRASU`
28. **2021-07-2021-09** `リトルバスターズ!` https://vndb.org/v5 | ID: `LB`
29. **2021-08** `Cross†Channel` https://vndb.org/v66 | ID: `CC`
30. **2021-09** `Planetarian~ちいさなほしのゆめ~` https://vndb.org/v34 | ID: `PLANETARIAN`
31. **2021-10** `とっぱら~ざしきわらしのはなし~` https://vndb.org/v963 | ID: `TOPPARA`
32. **2021-10-2021-12** `ISLAND` https://vndb.org/v18498 | ID: `ISLAND`
33. **2021-11** `ランス01 光をもとめて` https://vndb.org/v14022 | ID: `RANCE01`
34. **2021-12** `ウチはもう、延期できない。` https://vndb.org/v31740 | ID: `ENKING`
35. **2022-01** `恋する彼女の不器用な舞台` https://vndb.org/v15393 | ID: `KOIKANO`
36. **2022-01-2022-03** `我が姫君に栄冠を` https://vndb.org/v29057 | ID: `WAGAHIME`
37. **2022-02** `Narcissu` https://vndb.org/v10 | ID: `NARCI`
38. **2022-03** `君と彼女と彼女の恋。` https://vndb.org/v7738 | ID: `TOTONO`
39. **2022-04** `AIR` https://vndb.org/v36 | ID: `AIR`
40. **2022-04-2022-06** `CHAOS;HEAD NOAH` https://vndb.org/v22505 | ID: `CHNOAH`
41. **2022-05** `あかやあかしやあやかしの` https://vndb.org/v5841 | ID: `AKAAKA`
42. **2022-06** `はーとふる彼氏〜希望の学園と白い翼〜` https://vndb.org/v7836 | ID: `HATOFUL`
43. **2022-07** `浄火の紋章` https://vndb.org/v1390 | ID: `JOUKA`
44. **2022-07-2022-09** `マブラヴ` https://vndb.org/v93 | ID: `MUVLUV`
45. **2022-08** `星空鉄道とシロの旅` https://vndb.org/v28297 | ID: `HOSISIRO`
46. **2022-09** `ぽぽたん` https://vndb.org/v196 | ID: `POPOTAN`
47. **2022-10-2022-12** `素晴らしき日々~不連続存在~` https://vndb.org/v3144 | ID: `SUBAHIBI`
48. **2022-10** `いつか、届く、あの空に。` https://vndb.org/v23 | ID: `ITSUSORA`
49. **2022-11** `LAMUNATION!` https://vndb.org/v18344 | ID: `LAMU`
50. **2022-12** `イハナシの魔女` https://vndb.org/v32758 | ID: `IHANASI`
51. **2023-01-2023-03** `Summer Pockets` https://vndb.org/v20424 | ID: `SAMAPOKE`
52. **2023-01** `ユメミルクスリ` https://vndb.org/v44 | ID: `YMK`
53. **2023-02** `暁の護衛` https://vndb.org/v629 | ID: `AKAGOEI`"""

        test_embed = discord.Embed(title="Test", description=description)
        await ctx.send(embed=test_embed)

Expected Results

The full string should be shown in the embed.

Actual Results

The embed is cut off at the 50th line. image

Intents

all

System Information

Checklist

Additional Context

No response

Rapptz commented 1 year ago

The library doesn't do any cut off of contents. Chances are your description has a lot of element nodes and the Discord client refuses to render any more.