From 624803b56f62e04ed9c2fd2f8f441f72c49ecb60 Mon Sep 17 00:00:00 2001 From: Shinobi <86633847+Shinobi7k@users.noreply.github.com> Date: Thu, 13 Oct 2022 01:32:55 +0200 Subject: [PATCH] Update logs.py --- cogs/logs.py | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/cogs/logs.py b/cogs/logs.py index af667f0..b9f8b60 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -17,7 +17,8 @@ async def server_confirm(self, interaction:discord.Interaction, button:discord.u with open("jsons/server_log.json", "w") as f: channel[str(interaction.user.guild.id)] = server_log_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your server's updates log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Server Log", description = "Your server's updates log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -45,7 +46,8 @@ async def roles_confirm(self, interaction:discord.Interaction, button:discord.ui with open("jsons/roles_log.json", "w") as f: channel[str(interaction.user.guild.id)] = roles_log_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your roles updates log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Roles Log", description = "Your roles' updates log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -73,7 +75,8 @@ async def members_confirm(self, interaction:discord.Interaction, button:discord. with open("jsons/members_log.json", "w") as f: channel[str(interaction.user.guild.id)] = members_log_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your members' updates log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Members Log", description = "Your members' updates log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -101,7 +104,8 @@ async def channels_confirm(self, interaction:discord.Interaction, button:discord with open("jsons/channels_log.json", "w") as f: channel[str(interaction.user.guild.id)] = channels_log_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your channels' updates log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Channels Log", description = "Your channels' updates log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -129,7 +133,8 @@ async def edits_confirm(self, interaction:discord.Interaction, button:discord.ui with open("jsons/msg_edits.json", "w") as f: channel[str(interaction.user.guild.id)] = edits_log_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your edited message log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Edited Messages Log", description = "Your edited messages log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -157,7 +162,8 @@ async def deletes_confirm(self, interaction:discord.Interaction, button:discord. with open("jsons/msg_deletes.json", "w") as f: channel[str(interaction.user.guild.id)] = deletes_log_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your deleted messages log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Deleted Messages Log", description = "Your deleted messages log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -185,7 +191,8 @@ async def joins_confirm(self, interaction:discord.Interaction, button:discord.ui with open("jsons/joins.json", "w") as f: channel[str(interaction.user.guild.id)] = joins_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your members' joins log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Joins Log", description = "Your members' joins log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self) @@ -213,7 +220,8 @@ async def leaves_confirm(self, interaction:discord.Interaction, button:discord.u with open("jsons/leaves.json", "w") as f: channel[str(interaction.user.guild.id)] = leaves_channel json.dump(channel, f, sort_keys=True, indent=4, ensure_ascii=False) - await interaction.response.send_message("> Your members' leaves log channel has been updated succesfully!") + embed = discord.Embed(title = "📝 ┃ Leaved Log", description = "Your members' leaves log channel has been updated succesfully!", color = 0x000000) + await interaction.response.send_message(embed = embed) for child in self.children: child.disabled=True await interaction.message.edit(view=self)