[Dev] Cast repl output to str before sending

This commit is contained in:
Twentysix 2017-06-24 20:41:02 +02:00
parent 8fa967cb91
commit 2d02dcf682

View File

@ -222,7 +222,7 @@ class Dev:
msg = "{}".format(value) msg = "{}".format(value)
try: try:
for page in pagify(msg, shorten_by=12): for page in pagify(str(msg), shorten_by=12):
page = self.sanitize_output(ctx, page) page = self.sanitize_output(ctx, page)
await ctx.send(box(page, "py")) await ctx.send(box(page, "py"))
except discord.Forbidden: except discord.Forbidden: