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

feat: add REQUIRE_TAG and make channel flags editable #1693

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

AstreaTSS
Copy link
Member

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 the REQUIRE_TAG flag to ChannelFlags, and makes channel flags editable.

(Technically this is two features in one, but they fit together.)

Changes

See description.

Related Issues

Fixes #1673

Test Scenarios

import interactions as ipy

@ipy.slash_command("test", description="test!")
async def test(ctx: ipy.SlashContext):
    chan: ipy.GuildForum = await bot.fetch_channel(FORUM_CHANNEL)
    await chan.edit(flags=ipy.ChannelFlags.REQUIRE_TAG)
    await ctx.send("Done!")

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

@AstreaTSS AstreaTSS changed the title feat: add required_tag and make channel flags editable feat: add REQUIRE_TAG and make channel flags editable Jun 7, 2024
@silasary silasary merged commit 457ac02 into interactions-py:unstable Jun 8, 2024
2 checks passed
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.

2 participants