Skip to content

Commit 39ea155

Browse files
committed
chore(sesp.isadev.custom_roles): reserve certain rolenames
1 parent a97520e commit 39ea155

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,7 @@ Fixed checking for an incorrect status in weebism.mal_updates: the function shou
7474
In sesp.isadev.subdomains, a bug was found where commands didn't support queries that ended with `.is-a.dev`. This was patched in this update.
7575

7676
#### 1.8.0
77-
Rewrite sesp.isadev.booster_perks.
77+
Rewrite sesp.isadev.booster_perks and rename it to sesp.isadev.custom_roles.
78+
79+
#### 1.8.1
80+
Reserve certain role names in sesp.isadev.custom_roles.

takina/cogs/sesp/isadev/custom_roles.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ async def modify_role(
4242
embed = nextcord.Embed(color=config.EMBED_COLOR)
4343
role = await self.get_role_data(guild, member.id)
4444

45+
if ["maintainer", "admin", "staff", "helper", "moderator"] in name.lower():
46+
embed.color = config.ERROR_COLOR
47+
embed.description = ":x: This role name is reserved."
48+
return embed
49+
4550
if delete:
4651
if role:
4752
await role.delete()

takina/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
REDDIT_CLIENT_ID = getenv("REDDIT_CLIENT_ID")
1414
REDDIT_CLIENT_SECRET = getenv("REDDIT_CLIENT_SECRET")
1515
ERROR_COLOR = 0xFF0037
16-
BOT_VERSION = "1.8.0"
16+
BOT_VERSION = "1.8.1"
1717

1818
EMBED_COLOR_STR = getenv("EMBED_COLOR", "#2B2D31")
1919
if EMBED_COLOR_STR.startswith("#"):

0 commit comments

Comments
 (0)