Skip to content

Conversation

Grace-codes
Copy link
Contributor

Summary

This adds a len method to Message that returns the length of the message.content

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • 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, ...)

@CodeWithSwastik CodeWithSwastik added the status: awaiting review Awaiting review from a maintainer label Sep 12, 2021
@CodeWithSwastik CodeWithSwastik merged commit 2858bd1 into Pycord-Development:master Sep 13, 2021
CodeWithSwastik added a commit that referenced this pull request Oct 14, 2021
CodeWithSwastik added a commit that referenced this pull request Oct 14, 2021
CodeWithSwastik added a commit that referenced this pull request Oct 19, 2021
* Prefer static_format over format with static assets

* GitHub Action to lint Python code

* bytes, not Bytes

* Update lint_python.yml

* Delete lint_python.yml

* Fix typos discovered by codespell

* Fix typos discovered by codespell

* GitHub Action to run codespell

* Make id parameter positional only

* Code Of conduct is a suggestion by Github

* Change `ctx.send` to `ctx.respond` in the README (#197)

* Update README.rst

* Update README.rst

* Added START_EMBEDDED_ACTIVITIES permission #198 (#199)

* Use start_embedded_activities instead of create_instant_invite

* Use an Enum for embedded activites

* Fix error in docstring

* Add typehinting to pull request checklist

* fix: distribution

* change: display text

* fixup! Fix typo for overridden

* Changed unchanged change

* Add *items to View

* Add Pycord Development to LICENSE

* License updates

* Fix accidental deletion in 1257776

* Add dependabot

* Add CodeQL

* Bump sphinx from 4.0.2 to 4.2.0

Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.0.2 to 4.2.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](sphinx-doc/sphinx@v4.0.2...v4.2.0)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Set pycord user-agent (#241)

* created delete_after parameter for ctx.respond (#180)

* created delete_after parameter for ctx.respond

* Update discord/interactions.py

Co-authored-by: proguy914629 <74696067+proguy914629bot@users.noreply.github.com>

* added eventloop thing

* fixed ensure_future

Co-authored-by: proguy914629 <74696067+proguy914629bot@users.noreply.github.com>

* Added `on_raw_typing` event (#63)

* Added `on_raw_typing` event

* Fixes and adjustments for on_raw_typing

Co-authored-by: Swas.py <61446939+CodeWithSwastik@users.noreply.github.com>

* add support for role icons (#254)

* add support for role icons

* add unicode_emoji attribute and change Role.edit

* role.edit required b64 string for icon

* passing None should remove the icon

* change documentation to reflect changes

* update docstring for Role

* invalid sentence

* remove unnecessary documentation

* add new valid keys

* add valid keys

* set icon to None if unicode_emoji is passed

* Fix typo in docs

* Use `ctx.respond` in favor of `ctx.send`

* Use `ctx.respond` in favor of `ctx.send`

* Added new embedded activites with documentation. (#267)

* Added new embedded activities

* Removed chess and renamed youtube2

* Documented `EmbeddedActivity` Enumeration

* renamed youtube_advance to watch_together and added dev version of it

Co-authored-by: Lala Sabathil <aiko@aitsys.dev>

* Updated docs with the new naming convention

Co-authored-by: Lala Sabathil <aiko@aitsys.dev>

Co-authored-by: Lala Sabathil <aiko@aitsys.dev>

* add support for sending file(s) in interaction response (#263)

* add support for sending file(s) in interaction response

* update docstring

* fix

* add ephemeral attribute to Attachment

* use dict.get to avoid KeyErrors (#268)

* Revert "Add a dunder len to Message (#176)" (#270)

This reverts commit 2858bd1.

* Add missing flags

* Fix typo

* Typos .-.

* Fix typo

Co-authored-by: Sonic4999 <sonictbm@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Izhar Ahmad <54180221+nerdguyahmad@users.noreply.github.com>
Co-authored-by: PGamerX <websitedesigner123456@gmail.com>
Co-authored-by: Gracie <87055757+Grace-codes@users.noreply.github.com>
Co-authored-by: Middledot <78228142+Middledot@users.noreply.github.com>
Co-authored-by: DeviousLab <deviouslab@gmail.com>
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
Co-authored-by: Aomi Vel <69065737+AomiVel@users.noreply.github.com>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: Dorukyum <doruk.ak@hotmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ian Webster <ianw_github@ianww.com>
Co-authored-by: Cheeseboy8020 <68305035+Cheeseboy8020@users.noreply.github.com>
Co-authored-by: proguy914629 <74696067+proguy914629bot@users.noreply.github.com>
Co-authored-by: Zeffo <43495198+zeffo@users.noreply.github.com>
Co-authored-by: Prince Raj <68418241+Prince2347X@users.noreply.github.com>
Co-authored-by: Lala Sabathil <aiko@aitsys.dev>
Co-authored-by: Lala Sabathil <aiko@aiko-it-systems.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: awaiting review Awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants