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

invites_disabled bug. #10098

Open
3 tasks done
finland1848 opened this issue Feb 6, 2025 · 1 comment
Open
3 tasks done

invites_disabled bug. #10098

finland1848 opened this issue Feb 6, 2025 · 1 comment
Labels
unconfirmed bug A bug report that needs triaging

Comments

@finland1848
Copy link

finland1848 commented Feb 6, 2025

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

@finland1848 finland1848 added the unconfirmed bug A bug report that needs triaging label Feb 6, 2025
@Soheab
Copy link
Contributor

Soheab commented Feb 6, 2025

discord/discord-api-docs#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug A bug report that needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants