discord.py icon indicating copy to clipboard operation
discord.py copied to clipboard

invites_disabled bug.

Open seiftheman opened this issue 1 year ago • 1 comments

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

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

Additional Context

No response

seiftheman avatar Feb 06 '25 21:02 seiftheman

https://github.com/discord/discord-api-docs/issues/6629 Maybe relevant? Make sure you're doing it on a guild with community features enabled.

But you should use the new dms_disabled_until= kwarg either way.

Soheab avatar Feb 06 '25 21:02 Soheab