Disnake migration#2103
Conversation
| commands.command = partial(commands.command, cls=monkey_patches.Command) | ||
| commands.GroupMixin.command = partialmethod(commands.GroupMixin.command, cls=monkey_patches.Command) | ||
| # Apply all monkey patches from bot core. | ||
| monkey_patches.apply_monkey_patches() |
There was a problem hiding this comment.
This API is kind of silly. If there's only going to be one public function, it would have been better to expose it directly from the utils namespace. You stated yourself that we'd probably never want to apply patches on an individual basis; if patches are no longer needed we'd just remove them entirely from the code base.
There was a problem hiding this comment.
There was a problem hiding this comment.
Raised python-discord/bot-core#35 for this comment, good point Mark
|
Just as point of order / reminder, please do not force push in this PR as that will mess with the "Viewed" markers to the right. |
|
Good work on this by the way, I ran both Pyright and Mypy in the command line with most type checking disabled (or ignored when reading the output) and I could not find any complaints about |
|
Thanks for addressing my comments Chris. I have looked at the diff of each file and not yet found any odd changes - I could also not find any differences between discord.py and disnake when migrating other than the new text-in-voice feature resulting in some methods returning Additionally, this pull request is pretty much incompatible with every other pull request currently open. Has there been any thought put into figuring out which ones should be merged before this is merged, and which ones should be merged afterwards (so that we can let the author of those know to update to disnake)? |
Not that I can think of, we also don't use text in voice channels in the server.
I think any PRs that are open when this is merged will just need to be rebased, I don't think there are any PRs open that should block this. We of course can extend the offer to help anyone with an open PR to resolve conflicts. |
|
Marked as do not merge to allow me to squash fixup commits on this PR before it hits main |
MarkKoz
left a comment
There was a problem hiding this comment.
I've looked over all the diffs; looks fine except that one comment. I ran the bot and it started up fine. I did my own search for missed references and couldn't find anything.
mbaruh
left a comment
There was a problem hiding this comment.
Ran most commands, seems to work well. Thanks!
All of the tag content is out of scope for this PR.
interaction.response is what should be used now instead.
3031a12 to
a1c73b5
Compare
This migrates the bot to disnake, as per recent discussions.
What this includes:
fileskwarg, which is only used in the help channels cog.This not included in this PR:
P.S this is quite a large PR, so reviewing by the commits may be helpful. I tried to keep the huge rename within the single commit 27b18ba, and didn't include anything else in there.