Skip to content

invites_disabled bug. #10098

@seiftheman

Description

@seiftheman

Summary

When I do like await ctx.guild.edit(invites_disabled=True) it returns 403 Forbidden even tho the bot has the permission to do it. And await ctx.guild.edit(invites_disabled=False) does nothing. invites_disabled_until works.

Reproduction Steps

  1. Do await ctx.guild.edit(invites_disabled=True).
    You will get 403 Forbidden error.
  2. Do await ctx.guild.edit(invites_disabled=False).
    It will not do anything.

Minimal Reproducible Code

Expected Results

Expected await ctx.guild.edit(invites_disabled=True) to pause invites but it didn't.
Expected await ctx.guild.edit(invites_disabled=False) to resume invites but it didn't.

Actual Results

You will get 403 Forbidden error when you do await ctx.guild.edit(invites_disabled=True).
await ctx.guild.edit(invites_disabled=False) does nothing.

Intents

All.

System Information

  • Python v3.12.9-final
  • discord.py v2.5.0-alpha
    • discord.py metadata: v2.5.0a5142+gfa1cc00a
  • aiohttp v3.11.11
  • system info: Windows 11 10.0.22631

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed bugA bug report that needs triaging

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions