Parameters¶
message
¶
EditMessageParams
dataclass
¶
Bases: Part
flowchart TD
scurrypy.params.message.EditMessageParams[EditMessageParams]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.params.message.EditMessageParams
click scurrypy.params.message.EditMessageParams href "" "scurrypy.params.message.EditMessageParams"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Parameters for editing a message.
flags: MessageFlags = field(init=False, default=(MessageFlags.NO_FLAGS))
class-attribute
instance-attribute
¶
New flags for the message.
content: OptionalNullableParam[str] = Unset
class-attribute
instance-attribute
¶
Message text content.
components: OptionalNullableParam[list[ActionRow | Container]] = Unset
class-attribute
instance-attribute
¶
Components to be attached to this message.
attachments: OptionalNullableParam[list[AttachmentPart]] = Unset
class-attribute
instance-attribute
¶
Attachments to be attached to this message.
embeds: OptionalNullableParam[list[EmbedPart]] = Unset
class-attribute
instance-attribute
¶
Embeds to be attached to this message.
message_reference: OptionalNullableParam[MessageReferencePart] = Unset
class-attribute
instance-attribute
¶
Message reference if reply.
files: list[str] | None
property
¶
Gather file paths and from attachments.
Raises:
-
MissingField–missing attachment path
Returns:
-
list[str] | None–list of file paths or
Noneif no attachments were supplied