13 lines
335 B
Python
13 lines
335 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import Protocol, runtime_checkable
|
||
|
|
|
||
|
|
|
||
|
|
@runtime_checkable
|
||
|
|
class ChannelCommandProtocol(Protocol):
|
||
|
|
def resolve_native_command_name(self, command: str) -> str: ...
|
||
|
|
|
||
|
|
def build_commands_list(self) -> list[dict]: ...
|
||
|
|
|
||
|
|
def enforce_owner_for_commands(self, command: str) -> bool: ...
|