import discord import aiohttp async def wget(url): async with aiohttp.ClientSession() as session: async with session.get(url) as response: return await response.read() class Client(discord.Client): async def on_ready(self): print("Logged on as", self.user) guild = self.get_guild(256674225211834369) for emoji in guild.emojis: print(emoji) image = await wget(emoji.url) open("emoji/%s.png" % emoji.name, "wb").write(image) await self.logout() client = Client() client.run(open("token.personal").read().strip(), bot=False)