forgot 'or null'
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 5s
This commit is contained in:
parent
55cec92705
commit
0e48d752d5
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ class Starboard(commands.Cog):
|
||||||
@commands.message_command(name="Preview Starboard Message")
|
@commands.message_command(name="Preview Starboard Message")
|
||||||
async def preview_starboard_message(self, ctx: discord.ApplicationContext, message: discord.Message):
|
async def preview_starboard_message(self, ctx: discord.ApplicationContext, message: discord.Message):
|
||||||
embed, stars = await self.generate_starboard_embed(message)
|
embed, stars = await self.generate_starboard_embed(message)
|
||||||
data = await self.redis.get(str(message.id))
|
data = await self.redis.get(str(message.id)) or 'null'
|
||||||
return await ctx.respond(
|
return await ctx.respond(
|
||||||
f"```json\n{json.dumps(json.loads(data), indent=4)}\n```\nStars: {stars:,}",
|
f"```json\n{json.dumps(json.loads(data), indent=4)}\n```\nStars: {stars:,}",
|
||||||
embeds=embed
|
embeds=embed
|
||||||
|
|
Loading…
Reference in a new issue