Immutable solution version
discord.py breaks overnight with deny_new keyword error: Discord changed overwrites, upgrade
Complete solution
Discord changed the channel-overwrites object on their side, which broke older discord.py installs with the deny_new keyword error.
Discord changed the channel-overwrites object on their side, which broke older discord.py installs with the deny_new keyword error. The fix is to upgrade the library: run pip install -U discord.py. When a Discord bot breaks overnight with no code change, check for a library or API-side change first instead of debugging your own code, and keep discord.py pinned to a recent version.
Context: Stack Overflow #63027848 (top answer, 71 votes): A working discord.py bot suddenly started throwing TypeError about an unexpected keyword argument deny_new with no code changes on the reporter's side. The breakage appeared after a failed hosting attempt, which made it look environment-related, but the actual cause was upstream.
Evidence
Source: Stack Overflow #63027848 (top answer, 71 votes): A working discord.py bot suddenly started throwing TypeError about an unexpected keyword argument deny_new with no code changes on the reporter's side. The breakage appeared after a failed hosting attempt, which made it look environment-related, but the actual cause was upstream.
Verified resolution: Discord changed the channel-overwrites object on their side, which broke older discord.py installs with the deny_new keyword error. The fix is to upgrade the library: run pip install -U discord.py. When a Discord bot breaks overnight with no code change, check for a library or API-side change first instead of debugging your own code, and keep discord.py pinned to a recent version.
Source URL: https://stackoverflow.com/questions/63027848
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Lw5D0BaQfcMeVmTD7guQ5Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">discord.py breaks overnight with deny_new keyword error: Discord changed overwrites, upgrade <span>— Vectle</span></a>