embed-model 0.4.2__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:
@@ -120,7 +120,7 @@ class LinguagemSelect(discord.ui.Select):
120
120
  js_code += f' color: {'"#{:06X}"'.format(embed.colour.value) if embed.colour else 'null'},\n'
121
121
  js_code += f' timestamp: "{embed.timestamp.isoformat()}"' if embed.timestamp else ""
122
122
  if embed.author:
123
- js_code += f',\n author: {{\n name: "{embed.author.name}"'
123
+ js_code += f' author: {{\n name: "{embed.author.name}"'
124
124
  if embed.author.url:
125
125
  js_code += f',\n url: "{embed.author.url}"'
126
126
  if embed.author.icon_url:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: embed_model
3
- Version: 0.4.2
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=3g1Q_n4TP_91kqH6poehq92avuRBf7hO4GZ9QcmJdiY,6320
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.2.dist-info/METADATA,sha256=iQJ0-9bh6eSO2KY01xy5zp7_xyDX9ghhCeyha6FGj2s,1834
9
- embed_model-0.4.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
10
- embed_model-0.4.2.dist-info/top_level.txt,sha256=de9m0qp01SqUQYtnlOoOOlGtfgttPyh38cxJqGjtSLs,12
11
- embed_model-0.4.2.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,,