Models¶
Models are classes that are constructed internally and are not meant to be constructed by users.
Note
Nearly all classes here have __slots__ defined which means that it is impossible to have dynamic attributes to the data classes.
MaxUsages¶
Attributes
- class discord_tools.MaxUsages(limit, bucket, **options)[source]¶
Represents a maximum usages object.
This is not meant to be constructed manually but rather built by
max_usages().- limit¶
The usages limit that are allowed before raising
MaxUsagesReached.- Type:
- bucket¶
The bucket in which the usages are restricted by.
- Type:
- hide_after_limit¶
Whether to set the
discord.ext.commands.Command.hiddenattribute toTruewhen the limit is reached.- Type:
- disable_after_limit¶
Whether to set the
discord.ext.commands.Command.enabledattribute toFalsewhen the limit is reached.- Type: