Skip to content

Commit

Permalink
Made sendMessage return message ID
Browse files Browse the repository at this point in the history
  • Loading branch information
LilbabxJJ-1 committed Jun 20, 2023
1 parent d5ff376 commit 73a8dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CharmCord/Functions/Messages/sendMessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def sendMessage(args: str, Context):
message = split[1]
channel = await bots.fetch_channel(int(channel_id))
message = message.replace(newline_char, "\n")
await channel.send(message)
sent = await channel.send(message)
except:
raise SyntaxError("Can't send empty message!")
return
return sent.id

0 comments on commit 73a8dfb

Please sign in to comment.