discord.py icon indicating copy to clipboard operation
discord.py copied to clipboard

Add support for widget image

Open codeofandrin opened this issue 3 years ago • 2 comments

Summary

This PR adds a new method widget_image_url to Guild, which returns an URL to the widget image.

Checklist

  • [x] If code changes were made then they have been tested.
    • [x] I have updated the documentation to reflect the changes.
  • [ ] This PR fixes an issue.
  • [x] This PR adds something new (e.g. new method or parameters).
  • [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • [ ] This PR is not a code change (e.g. documentation, README, ...)

codeofandrin avatar Mar 17 '23 23:03 codeofandrin

Yes. I couldn't find a good name for it. I first thought about widget_image_link but idk if this is the way to go.

codeofandrin avatar Mar 29 '23 04:03 codeofandrin

How about turning this into an helper function in utils.py like oauth_url?

codeofandrin avatar Jan 27 '24 13:01 codeofandrin