Skip to content

feat: add safety alerts channel to guild model #1589

New issue

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

By clicking “No 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? No Sign in to your account

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

ItsRqtl
Copy link
Contributor

@ItsRqtl ItsRqtl commented Dec 4, 2023

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

This PR adds safety alerts channel related stuff to the Guild model.

Changes

  • added safety_alerts_channel_id field
  • added safety_alerts_channel property
  • added safety_alerts_channel args to Guild.edit method
  • added safety_alerts_channel_id args to http.modify_guild method

Related Issues

Test Scenarios

Get a guild that has a safety alerts channel set, check the safety_alerts_channel is equal to the one being set
Edit the guild with the Guild.edit method, check if Guild.safety_alerts_channel == the one being passed into Guild.edit

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

@eightween eightween added enhancement New feature or request pending Pending approve labels Dec 9, 2023
@eightween eightween merged commit ebe2e1a into interactions-py:unstable Dec 11, 2023
@eightween eightween removed the pending Pending approve label Dec 11, 2023
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants