mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 09:22:31 -05:00
Close aiohttp ClientSession (#1340)
This commit is contained in:
@@ -24,6 +24,9 @@ class Image:
|
|||||||
self.session = aiohttp.ClientSession()
|
self.session = aiohttp.ClientSession()
|
||||||
self.imgur_base_url = "https://api.imgur.com/3/"
|
self.imgur_base_url = "https://api.imgur.com/3/"
|
||||||
|
|
||||||
|
def __unload(self):
|
||||||
|
self.session.close()
|
||||||
|
|
||||||
@commands.group(name="imgur")
|
@commands.group(name="imgur")
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def _imgur(self, ctx):
|
async def _imgur(self, ctx):
|
||||||
|
|||||||
Reference in New Issue
Block a user