aboutsummaryrefslogtreecommitdiff
path: root/discord/calls.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-11-22 19:30:21 -0500
committerRapptz <[email protected]>2016-11-22 19:30:21 -0500
commitc4ee4c1db4d7997f4b847bb4dd4ad3388db74242 (patch)
treed9f616684bdb431c9474738d8fe0dbe0b029d1b3 /discord/calls.py
parentAdd PermissionOverwrite.is_empty to query empty state of an overwrite. (diff)
downloaddiscord.py-c4ee4c1db4d7997f4b847bb4dd4ad3388db74242.tar.xz
discord.py-c4ee4c1db4d7997f4b847bb4dd4ad3388db74242.zip
Make discord.Embed builder more strict and easier to use.
Allow for easier use when trying to "reuse" the same discord.Embed object by providing new methods such as Embed.clear_fields, Embed.set_field_at, and allowing you to set things to Embed.Empty to clear out an attribute. For ease of use, things are automatically casted to ``str`` to prevent the user from having HTTP 400 errors if they forgot to do so. The new embed builder also supports "fluent-style" interface to allow you to chain methods in a single line if necessary. Certain parameters were removed since they were ignored by Discord anyway such as `width` and `height` in Embed.set_image and Embed.set_thumbnail.
Diffstat (limited to 'discord/calls.py')
0 files changed, 0 insertions, 0 deletions