@bot.command()
async def grole(ctx):
import io
username = ctx.author
channel = bot.get_channel(id=111111111111111111)
for attach in ctx.message.attachments:
imgn = attach.filename
img = io.BytesIO(await attach.read())
await channel.send(file = discord.File(img, imgn))