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 = 2
Ancestors
- enum.Enum
Class variables
var KEBAB_CASE
var 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_interaction
in discord.py. var UNOFFICIAL
-
Use the
Context
provided 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 = 3
Ancestors
- enum.Enum
Class variables
var NONE
var REPLY
var SEND
var 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 = 5
Ancestors
- enum.Enum
Class variables
var DEFER
var DEFER_EPHEMERAL
var DEFER_THINKING
var DEFER_THINKING_EPHEMERAL
var NOTHING
var TYPING