Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guild Scheduled Event Recurrence & Exceptions #9685

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

DA-344
Copy link
Contributor

@DA-344 DA-344 commented Dec 14, 2023

Summary

Now I added a local to ignore docs lol, so no more problems

This PR adds support for Guild Scheduled Event recurrence and exceptions.

This will stay draft until it gets documented on the Discord API Docs

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, ...)

@Vioshim
Copy link
Contributor

Vioshim commented Jun 7, 2024

Bump (not sure if it is correct to, my bad if so)

Copy link
Contributor

@AbstractUmbra AbstractUmbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Respecting that this PR is still in draft I wanted to raise a few things before we get too deep into it.


def __eq__(self, other: object) -> bool:
if isinstance(other, self.__class__):
return self.exception_ids == other.exception_ids
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently an AttributeError?

Comment on lines 121 to 123
For example, if you want for this event to repeat the 1st Monday of the month,
then this param should have a value of `(1, 0)`. Where ``1`` represents the
'first' and ``0`` the weekday, in this case, Monday.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of an example easily missed here, why not do something like this with a few (small) examples.

)
return NotImplemented

def __set_interval(self, value: int) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's uncommon for discord.py to use name mangling on private methods like this. Any particular reason we added it here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants