mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
21 lines
476 B
Python
21 lines
476 B
Python
from typing import Union
|
|
from discord.ext.commands import Context
|
|
from vulkan.controllers.Exceptions import Error
|
|
|
|
|
|
class AbstractResult:
|
|
def __init__(self, ctx: Context, success: bool) -> None:
|
|
self.__success: bool = success
|
|
self.__ctx: Context = ctx
|
|
|
|
@property
|
|
def ctx(self) -> Context:
|
|
return self.__ctx
|
|
|
|
@property
|
|
def success(self) -> bool:
|
|
return self.__success
|
|
|
|
def error(self) -> Union[Error, None]:
|
|
pass
|