Skip to content

Commit

Permalink
fix(cogs.meme): add int
Browse files Browse the repository at this point in the history
  • Loading branch information
samsunghappytree123 committed Mar 19, 2023
1 parent 1775f9d commit f06d284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/meme.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def meme_upload_file(
filename = f"{str(ctx.author.id)}-{(datetime.datetime.utcnow() + datetime.timedelta(hours=9)).strftime('%Y%m%d-%H%M%S')}.{url.split('.')[-1]}"

try:
img_msg = await self.bot.get_channel(config.BOT.MEME_CHANNEL).send(
img_msg = await self.bot.get_channel(int(config.BOT.MEME_CHANNEL)).send(
content=f"{ctx.author.mention} (`{ctx.author.id}`)",
file=await file.to_file(),
allowed_mentions=discord.AllowedMentions.none(),
Expand Down Expand Up @@ -561,7 +561,7 @@ async def meme_upload_link(
await f.write(await resp.read())

try:
img_msg = await self.bot.get_channel(config.BOT.MEME_CHANNEL).send(
img_msg = await self.bot.get_channel(int(config.BOT.MEME_CHANNEL)).send(
content=f"{ctx.author.mention} (`{ctx.author.id}`)",
file=discord.File(filename),
allowed_mentions=discord.AllowedMentions.none(),
Expand Down

0 comments on commit f06d284

Please sign in to comment.