mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Close aiohttp ClientSession (#1340)
This commit is contained in:
parent
d54c129c57
commit
d414806fa2
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user