Skip to content

Conversation

mAxYoLo01
Copy link
Contributor

Pull Request Type

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

Description

Adds Guild.fetch_all_webhooks(), as requested on support server

Changes

Related Issues

Test Scenarios

@interactions.slash_command(name="test")
async def test(ctx: interactions.SlashContext):
    webhooks = await ctx.guild.fetch_all_webhooks()
    for webhook in webhooks:
        print(webhook.name)

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

@LordOfPolls LordOfPolls merged commit c9f43c0 into interactions-py:unstable Aug 26, 2023
@mAxYoLo01 mAxYoLo01 deleted the webhooks branch August 29, 2023 11:51
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.

3 participants