From 190090210f6b58538c1eb58e332cd581f4f4f98e Mon Sep 17 00:00:00 2001 From: elenakrittik Date: Sun, 12 Nov 2023 21:10:24 +0300 Subject: [PATCH] docs: Add changelogs. --- changelog/1132.breaking.0.rst | 1 + changelog/1132.deprecate.rst | 1 + changelog/1132.feature.rst | 1 + changelog/1132.misc.rst | 1 + changelog/641.breaking.0.rst | 1 + changelog/641.breaking.1.rst | 1 + changelog/641.feature.0.rst | 1 + changelog/641.feature.1.rst | 1 + 8 files changed, 8 insertions(+) create mode 100644 changelog/1132.breaking.0.rst create mode 100644 changelog/1132.deprecate.rst create mode 100644 changelog/1132.feature.rst create mode 100644 changelog/1132.misc.rst create mode 100644 changelog/641.breaking.0.rst create mode 100644 changelog/641.breaking.1.rst create mode 100644 changelog/641.feature.0.rst create mode 100644 changelog/641.feature.1.rst diff --git a/changelog/1132.breaking.0.rst b/changelog/1132.breaking.0.rst new file mode 100644 index 0000000000..c8ef9bbf26 --- /dev/null +++ b/changelog/1132.breaking.0.rst @@ -0,0 +1 @@ +Removed ``loop`` and ``asyncio_debug`` parameters from :class:`Client`. diff --git a/changelog/1132.deprecate.rst b/changelog/1132.deprecate.rst new file mode 100644 index 0000000000..e8134a17e7 --- /dev/null +++ b/changelog/1132.deprecate.rst @@ -0,0 +1 @@ +Deprecated :attr:`Client.loop`. Use :func:`asyncio.get_running_loop` instead. diff --git a/changelog/1132.feature.rst b/changelog/1132.feature.rst new file mode 100644 index 0000000000..32470148e2 --- /dev/null +++ b/changelog/1132.feature.rst @@ -0,0 +1 @@ +Add :meth:`Client.setup_hook`. diff --git a/changelog/1132.misc.rst b/changelog/1132.misc.rst new file mode 100644 index 0000000000..9273c50aab --- /dev/null +++ b/changelog/1132.misc.rst @@ -0,0 +1 @@ +:meth:`Client.run` now uses :func:`asyncio.run` under-the-hood, instead of custom runner logic. diff --git a/changelog/641.breaking.0.rst b/changelog/641.breaking.0.rst new file mode 100644 index 0000000000..5dcd89c364 --- /dev/null +++ b/changelog/641.breaking.0.rst @@ -0,0 +1 @@ +|commands| Make :meth:`.ext.commands.Bot.load_extensions`, :meth:`.ext.commands.Bot.load_extension`, :meth:`.ext.commands.Bot.unload_extension`, :meth:`.ext.commands.Bot.reload_extension`, :meth:`.ext.commands.Bot.add_cog`, :meth:`.ext.commands.Bot.remove_cog` asynchronous. diff --git a/changelog/641.breaking.1.rst b/changelog/641.breaking.1.rst new file mode 100644 index 0000000000..9b3a0fb2fa --- /dev/null +++ b/changelog/641.breaking.1.rst @@ -0,0 +1 @@ +|commands| :meth:`.ext.commands.Cog.cog_load` is now called *after* the cog finished loading. diff --git a/changelog/641.feature.0.rst b/changelog/641.feature.0.rst new file mode 100644 index 0000000000..ee9e11b621 --- /dev/null +++ b/changelog/641.feature.0.rst @@ -0,0 +1 @@ +|commands| :meth:`.ext.commands.Cog.cog_load` and :meth:`.ext.commands.Cog.cog_unload` can now be either asynchronous or not. diff --git a/changelog/641.feature.1.rst b/changelog/641.feature.1.rst new file mode 100644 index 0000000000..7a56ba23fe --- /dev/null +++ b/changelog/641.feature.1.rst @@ -0,0 +1 @@ +|commands| The ``setup`` and ``teardown`` functions utilized by :ref:`ext_commands_extensions` can now be asynchronous.