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

Implement Stage Instances #1725

Merged
merged 34 commits into from
Aug 3, 2024
Merged

Implement Stage Instances #1725

merged 34 commits into from
Aug 3, 2024

Conversation

null-domain
Copy link
Contributor

Summary

This PR aims to finish the work made by @ashwinvin in #695, including rebasing on the most recent hikari version (at the time of writing) and bringing tests up to scratch.

Hopefully I haven't missed anything, I only had a few hours to look at this.

Checklist

  • I have run nox and all the pipelines have passed.
    • With the exception of the docs pipeline, but that isn't anything to do with me 👀
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

Closes #695
Closes #602

@davfsa davfsa added the enhancement New feature or request label Sep 28, 2023
@null-domain

This comment was marked as outdated.

@davfsa davfsa mentioned this pull request Sep 28, 2023
2 tasks
@null-domain null-domain marked this pull request as draft September 29, 2023 08:17
@null-domain
Copy link
Contributor Author

discord/discord-api-docs#5687 was merged last night so I'm gonna keep this as a draft until I get a moment to add this in. I have it committed locally but haven't had the chance to test yet.

@null-domain null-domain marked this pull request as ready for review October 2, 2023 09:32
Copy link
Member

@davfsa davfsa left a comment

Choose a reason for hiding this comment

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

Thanks for taking over this PR!

hikari/stage_instances.py Outdated Show resolved Hide resolved
hikari/impl/rest.py Outdated Show resolved Hide resolved
hikari/impl/rest.py Outdated Show resolved Hide resolved
tests/hikari/test_stage_instances.py Outdated Show resolved Hide resolved
tests/hikari/events/test_stage_events.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
@null-domain null-domain requested a review from davfsa October 4, 2023 09:37
Copy link
Member

@davfsa davfsa left a comment

Choose a reason for hiding this comment

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

LGTM, just a nitpick :)

hikari/impl/entity_factory.py Outdated Show resolved Hide resolved
hikari/stage_instances.py Outdated Show resolved Hide resolved
hikari/stage_instances.py Outdated Show resolved Hide resolved
hikari/stage_instances.py Outdated Show resolved Hide resolved
ashwinvin and others added 19 commits November 2, 2023 09:23
add stubs

fix linting

make names more consistent.

started adding tests

change stage_id to id

rename stage_instance_events to stage_events.

add helpful functions and modify abc thing

rename and fix linting

fix bugs + add tests for event manager

add tests for stage events and fix some bugs

add tests for stage_instance

fix linting

add tests and fix small bugs
Just brought it up to date with the current version (at time of writing)
`guild_scheduled_event_id` was recently merged into DAPI docs.
`send_start_notification` was added to Create Stage Instance some time ago, so I added that in too.
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: nulldomain <git@nulldoma.in>
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: nulldomain <git@nulldoma.in>
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/internal/routes.py Show resolved Hide resolved
null-domain and others added 3 commits December 7, 2023 08:57
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: nulldomain <git@nulldoma.in>
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: nulldomain <git@nulldoma.in>
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: nulldomain <git@nulldoma.in>
@null-domain null-domain requested a review from davfsa December 7, 2023 08:58
davfsa
davfsa previously approved these changes Dec 7, 2023
@davfsa
Copy link
Member

davfsa commented Jan 21, 2024

@FasterSpeeding please review when you can :)

@null-domain
Copy link
Contributor Author

@FasterSpeeding Can you review please?

@FasterSpeeding
Copy link
Collaborator

Asides from those few small things LGTM

hikari/events/stage_events.py Outdated Show resolved Hide resolved
hikari/stage_instances.py Outdated Show resolved Hide resolved
hikari/api/entity_factory.py Outdated Show resolved Hide resolved
hikari/api/event_factory.py Outdated Show resolved Hide resolved
hikari/api/event_factory.py Outdated Show resolved Hide resolved
hikari/api/event_factory.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/api/rest.py Outdated Show resolved Hide resolved
hikari/events/stage_events.py Outdated Show resolved Hide resolved
hikari/stage_instances.py Outdated Show resolved Hide resolved
tandemdude and others added 6 commits August 3, 2024 19:18
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: thomm.o <43570299+tandemdude@users.noreply.github.com>
Co-authored-by: davfsa <davfsa@gmail.com>
Signed-off-by: thomm.o <43570299+tandemdude@users.noreply.github.com>
@davfsa davfsa merged commit e13e29a into hikari-py:master Aug 3, 2024
27 checks passed
@null-domain null-domain deleted the feat/stage-instances branch August 4, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Stage Instances
6 participants