Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
[Backups]: new TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
nixxoq committed Nov 1, 2023
1 parent 47f4873 commit 9bf0005
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/cogs/backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,28 @@ async def load(self, ctx: commands.Context) -> None:
embed.description = "Stage 1 of 6\n> **Restoring the server name**"
await msg.edit(embed=embed)

# TODO: need refactor because see line 174
await ctx.guild.edit(name=data["guild"]["name"])
# TODO:
"""
"guild": {
"name": self.guild.name,
"rules_channel": self.guild.rules_channel.name
if self.guild.rules_channel
else None,
"public_updates_channel": self.guild.public_updates_channel.name
if self.guild.public_updates_channel
else None,
"afk_channel": self.guild.afk_channel.name
if self.guild.afk_channel
else None,
"afk_timeout": self.guild.afk_timeout if self.guild.afk_timeout else 0,
"description": self.guild.description,
},
"""
await ctx.guild.edit(
name=data["guild"]["name"],
afk_timeout=data["guild"]["afk_timeout"],
description=data["guild"]["description"],
)

embed.description = "Stage 2 of 6\n> **Deleting roles**"
await msg.edit(embed=embed)
Expand Down

0 comments on commit 9bf0005

Please sign in to comment.