mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
34 lines
883 B
Python
34 lines
883 B
Python
from abc import ABC, abstractmethod
|
|
from Handlers.HandlerResponse import HandlerResponse
|
|
from discord.ext.commands import Context
|
|
from discord import Message
|
|
from Music.VulkanBot import VulkanBot
|
|
|
|
|
|
class AbstractCommandResponse(ABC):
|
|
def __init__(self, response: HandlerResponse) -> None:
|
|
self.__response: HandlerResponse = response
|
|
self.__context: Context = response.ctx
|
|
self.__message: Message = response.ctx.message
|
|
self.__bot: VulkanBot = response.ctx.bot
|
|
|
|
@property
|
|
def response(self) -> HandlerResponse:
|
|
return self.__response
|
|
|
|
@property
|
|
def bot(self) -> VulkanBot:
|
|
return self.__bot
|
|
|
|
@property
|
|
def message(self) -> Message:
|
|
return self.__message
|
|
|
|
@property
|
|
def context(self) -> Context:
|
|
return self.__context
|
|
|
|
@abstractmethod
|
|
async def run(self) -> None:
|
|
pass
|