embed-model 0.4.3__py3-none-any.whl → 0.4.4__py3-none-any.whl

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.
embed_model/menus.py CHANGED
@@ -62,7 +62,7 @@ class LinguagemSelect(discord.ui.Select):
62
62
  async def callback(self, interaction: discord.Interaction):
63
63
  embed = interaction.message.embeds[0]
64
64
 
65
- descricao = embed.description.replace('\n', '\\n')
65
+ descricao = embed.description.replace('\n', '\\n') if embed.description else ""
66
66
  python_code = f"discord.Embed(title=\"{embed.title}\", description=\"{descricao}\", timestamp={embed.timestamp}"
67
67
  python_code += f", colour=discord.Color.from_str({'"#{:06X}"'.format(embed.colour)}))" if embed.colour else ")"
68
68
  if embed.author:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: embed_model
3
- Version: 0.4.3
3
+ Version: 0.4.4
4
4
  Summary: Um modelo de embeds não oficial para discord.py. Feito em Português.
5
5
  Home-page: https://github.com/LucaCunha001/DiscordEmbedModel
6
6
  Author: Luca Cunha (Frisk)
@@ -2,10 +2,10 @@ embed-model/__init__.py,sha256=GPy9PjPYdp9Bkk2q7-Ax6OWN6vvVf2gMN0qwKuSWczE,20
2
2
  embed-model/modulo.py,sha256=Z3_Is6T3PxU5QXO4i7t-L40MlDlcAqS3Eti77yxADFo,18431
3
3
  embed_model/__init__.py,sha256=ngZapDyhlk5fLHOkNGSs9XwmTp90pYPHIeMvAwKlxmI,5590
4
4
  embed_model/buttons.py,sha256=ofdkYbuAswTF7-Gm9IZsWI15pc4ovrs1sYup2L-v6Ps,1846
5
- embed_model/menus.py,sha256=kGrKnGmfR_QubF118aY0ObSUR6EQ1c8S33gbhzcQSkw,6317
5
+ embed_model/menus.py,sha256=rYodeRQV4Do0TukNTQ_53f2XGtLfnh0meHB9iU2pu-4,6346
6
6
  embed_model/modals.py,sha256=ZfOOeeodmlYUIgRoi--mYhSPu20y_7Pk4zfSQeWJGrA,6970
7
7
  embed_model/modulo.py,sha256=Z3_Is6T3PxU5QXO4i7t-L40MlDlcAqS3Eti77yxADFo,18431
8
- embed_model-0.4.3.dist-info/METADATA,sha256=_LSEQFsYOqx6RfOGrBRAiMPGIPQjxcl7D5RQdVRO1kw,1834
9
- embed_model-0.4.3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
10
- embed_model-0.4.3.dist-info/top_level.txt,sha256=de9m0qp01SqUQYtnlOoOOlGtfgttPyh38cxJqGjtSLs,12
11
- embed_model-0.4.3.dist-info/RECORD,,
8
+ embed_model-0.4.4.dist-info/METADATA,sha256=SAZzTBExb8t5ToWWgT8CInOTOb0rrUSA2S8BCR1V62o,1834
9
+ embed_model-0.4.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
10
+ embed_model-0.4.4.dist-info/top_level.txt,sha256=de9m0qp01SqUQYtnlOoOOlGtfgttPyh38cxJqGjtSLs,12
11
+ embed_model-0.4.4.dist-info/RECORD,,