Module fslash.types_
Expand source code
# discord-ext-fslash - Types
from typing import TypeVar
from enum import Enum
__all__ = ("AdjustmentNameMode", "TypingMode", "InteractionResponseMode", "ContextMode")
class AdjustmentNameMode(Enum):
"It is how lib arrange the name."
SNAKE_CASE = 1
KEBAB_CASE = 2
class TypingMode(Enum):
"The type of :meth:``fslash.context.Context.typing`` to identify its behavior."
"Do nothing."
NOTHING = 0
TYPING = 1
DEFER = 2
DEFER_EPHEMERAL = 3
DEFER_THINKING = 4
DEFER_THINKING_EPHEMERAL = 5
class InteractionResponseMode(Enum):
"What method is used to return the response of the interaction."
REPLY = 0
SEND = 1
SEND_AND_REPLY = 2
"Nothing, only ``interaction.response``."
NONE = 3
class ContextMode(Enum):
"It is how to create Context."
OFFICIAL = 0
"Use the standard `Context.from_interaction` in discord.py."
UNOFFICIAL = 1
"Use the `Context` provided in `discord-ext-fslash`."
BotT = TypeVar("BotT")
Classes
class AdjustmentNameMode (value, names=None, *, module=None, qualname=None, type=None, start=1)-
It is how lib arrange the name.
Expand source code
class AdjustmentNameMode(Enum): "It is how lib arrange the name." SNAKE_CASE = 1 KEBAB_CASE = 2Ancestors
- enum.Enum
Class variables
var KEBAB_CASEvar SNAKE_CASE
class ContextMode (value, names=None, *, module=None, qualname=None, type=None, start=1)-
It is how to create Context.
Expand source code
class ContextMode(Enum): "It is how to create Context." OFFICIAL = 0 "Use the standard `Context.from_interaction` in discord.py." UNOFFICIAL = 1 "Use the `Context` provided in `discord-ext-fslash`."Ancestors
- enum.Enum
Class variables
var OFFICIAL-
Use the standard
Context.from_interactionin discord.py. var UNOFFICIAL-
Use the
Contextprovided indiscord-ext-fslash.
class InteractionResponseMode (value, names=None, *, module=None, qualname=None, type=None, start=1)-
What method is used to return the response of the interaction.
Expand source code
class InteractionResponseMode(Enum): "What method is used to return the response of the interaction." REPLY = 0 SEND = 1 SEND_AND_REPLY = 2 "Nothing, only ``interaction.response``." NONE = 3Ancestors
- enum.Enum
Class variables
var NONEvar REPLYvar SENDvar SEND_AND_REPLY-
Nothing, only
interaction.response.
class TypingMode (value, names=None, *, module=None, qualname=None, type=None, start=1)-
The type of :meth:
Context.typing()to identify its behavior.Expand source code
class TypingMode(Enum): "The type of :meth:``fslash.context.Context.typing`` to identify its behavior." "Do nothing." NOTHING = 0 TYPING = 1 DEFER = 2 DEFER_EPHEMERAL = 3 DEFER_THINKING = 4 DEFER_THINKING_EPHEMERAL = 5Ancestors
- enum.Enum
Class variables
var DEFERvar DEFER_EPHEMERALvar DEFER_THINKINGvar DEFER_THINKING_EPHEMERALvar NOTHINGvar TYPING