discord-interactions

Enumerable Objects

class interactions.enums.ApplicationCommandType(value)

An enumerable object representing the types of application commands.

class interactions.enums.InteractionType(value)

An enumerable object representing the types of interactions.

class interactions.enums.OptionType(value)

Enumerable object of literal integers holding equivocal values of a slash command’s option(s).

Note

Equivalent of ApplicationCommandOptionType in the Discord API.

classmethod from_type(_type: type) enum.IntEnum

Get a specific enumerable from a type or object.

Parameters

_type (type) – The type or object to get an enumerable integer for.

Returns

enum.IntEnum.

class interactions.enums.PermissionType(value)

Enumerable object of literal integers holding equivocal values of a slash command’s permission(s).

Note

Equivalent of ApplicationCommandPermissionType in the Discord API.

classmethod from_type(_type: type) enum.IntEnum

Get a specific enumerable from a type or object. :param _type: The type or object to get an enumerable integer for. :type _type: type :return: enum.IntEnum.

class interactions.enums.ComponentType(value)

Enumerable object of literal integers holding equivocal values of a component(s) type.

Note

Equivalent of Component Types in the Discord API.

class interactions.enums.ButtonType(value)

Enumerable object of literal integers holding equivocal values of a button(s) type.

Note

Equivalent of Button Styles in the Discord API.