embed-model 0.4__py3-none-any.whl → 0.4.2__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/__init__.py +2 -2
- embed_model/buttons.py +3 -9
- {embed_model-0.4.dist-info → embed_model-0.4.2.dist-info}/METADATA +1 -1
- embed_model-0.4.2.dist-info/RECORD +11 -0
- embed_model-0.4.dist-info/RECORD +0 -11
- {embed_model-0.4.dist-info → embed_model-0.4.2.dist-info}/WHEEL +0 -0
- {embed_model-0.4.dist-info → embed_model-0.4.2.dist-info}/top_level.txt +0 -0
embed_model/__init__.py
CHANGED
@@ -104,7 +104,7 @@ class EmbedModelCommands(app_commands.Group):
|
|
104
104
|
)
|
105
105
|
|
106
106
|
exemplo_json = """```json
|
107
|
-
|
107
|
+
{
|
108
108
|
"title": "Título do Embed",
|
109
109
|
"description": "Descrição do Embed",
|
110
110
|
"color": "#5865F2",
|
@@ -136,7 +136,7 @@ class EmbedModelCommands(app_commands.Group):
|
|
136
136
|
"inline": false
|
137
137
|
}
|
138
138
|
]
|
139
|
-
|
139
|
+
}
|
140
140
|
```"""
|
141
141
|
|
142
142
|
embed.add_field(name="📝 Exemplo de JSON", value=exemplo_json, inline=False)
|
embed_model/buttons.py
CHANGED
@@ -30,17 +30,11 @@ class SendButton(discord.ui.Button):
|
|
30
30
|
self.msg = msg
|
31
31
|
|
32
32
|
async def callback(self, interaction: discord.Interaction):
|
33
|
-
|
33
|
+
embed = self.msg.embeds[0]
|
34
|
+
embed.timestamp = discord.utils.utcnow() if embed.timestamp else None
|
35
|
+
await self.msg.channel.send(content=self.msg.content, embed=embed)
|
34
36
|
await interaction.response.send_message("Embed enviado com sucesso!", ephemeral=True)
|
35
37
|
|
36
|
-
class CancelButton(discord.ui.Button):
|
37
|
-
def __init__(self, msg: discord.Message):
|
38
|
-
super().__init__(label="Cancelar", style=discord.ButtonStyle.red, emoji="❌")
|
39
|
-
self.msg = msg
|
40
|
-
|
41
|
-
async def callback(self, interaction: discord.Interaction):
|
42
|
-
await self.msg.delete()
|
43
|
-
|
44
38
|
class AddFieldButton(discord.ui.Button):
|
45
39
|
def __init__(self, message: discord.Message):
|
46
40
|
super().__init__(label="Adicionar Field", style=discord.ButtonStyle.gray, emoji="➕")
|
@@ -0,0 +1,11 @@
|
|
1
|
+
embed-model/__init__.py,sha256=GPy9PjPYdp9Bkk2q7-Ax6OWN6vvVf2gMN0qwKuSWczE,20
|
2
|
+
embed-model/modulo.py,sha256=Z3_Is6T3PxU5QXO4i7t-L40MlDlcAqS3Eti77yxADFo,18431
|
3
|
+
embed_model/__init__.py,sha256=ngZapDyhlk5fLHOkNGSs9XwmTp90pYPHIeMvAwKlxmI,5590
|
4
|
+
embed_model/buttons.py,sha256=ofdkYbuAswTF7-Gm9IZsWI15pc4ovrs1sYup2L-v6Ps,1846
|
5
|
+
embed_model/menus.py,sha256=3g1Q_n4TP_91kqH6poehq92avuRBf7hO4GZ9QcmJdiY,6320
|
6
|
+
embed_model/modals.py,sha256=ZfOOeeodmlYUIgRoi--mYhSPu20y_7Pk4zfSQeWJGrA,6970
|
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,,
|
embed_model-0.4.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
embed-model/__init__.py,sha256=GPy9PjPYdp9Bkk2q7-Ax6OWN6vvVf2gMN0qwKuSWczE,20
|
2
|
-
embed-model/modulo.py,sha256=Z3_Is6T3PxU5QXO4i7t-L40MlDlcAqS3Eti77yxADFo,18431
|
3
|
-
embed_model/__init__.py,sha256=T8NZU1xAlXNJ47quC8Yu4LbU_OWH7TrnITp_VhnziUA,5592
|
4
|
-
embed_model/buttons.py,sha256=ejaS65Ww5x4DZI06r0uqh6rdkzNVXP7jxPgrMc4V32Y,2033
|
5
|
-
embed_model/menus.py,sha256=3g1Q_n4TP_91kqH6poehq92avuRBf7hO4GZ9QcmJdiY,6320
|
6
|
-
embed_model/modals.py,sha256=ZfOOeeodmlYUIgRoi--mYhSPu20y_7Pk4zfSQeWJGrA,6970
|
7
|
-
embed_model/modulo.py,sha256=Z3_Is6T3PxU5QXO4i7t-L40MlDlcAqS3Eti77yxADFo,18431
|
8
|
-
embed_model-0.4.dist-info/METADATA,sha256=lrujdR-zm5s5PplbozYhmO5nzy4yO_M6HkVJ4Mv6vAw,1832
|
9
|
-
embed_model-0.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
10
|
-
embed_model-0.4.dist-info/top_level.txt,sha256=de9m0qp01SqUQYtnlOoOOlGtfgttPyh38cxJqGjtSLs,12
|
11
|
-
embed_model-0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|