Chaging the folders and creating a separeted class for messages

This commit is contained in:
Rafael Vargas
2022-03-22 17:53:21 -04:00
parent 2240c7535a
commit a828350201
27 changed files with 145 additions and 85 deletions

11
Views/EmbedView.py Normal file
View File

@@ -0,0 +1,11 @@
from Views.AbstractView import AbstractView
from Controllers.ControllerResponse import ControllerResponse
class EmbedView(AbstractView):
def __init__(self, response: ControllerResponse) -> None:
super().__init__(response)
async def run(self) -> None:
if self.response.embed:
await self.context.send(embed=self.response.embed)