Slightly changes naming
This commit is contained in:
parent
daae3db305
commit
42b4578d36
@ -112,7 +112,7 @@ class HoloUser:
|
|||||||
"""
|
"""
|
||||||
if isinstance(member, discord.User):
|
if isinstance(member, discord.User):
|
||||||
return False
|
return False
|
||||||
moderator_role = await config_get("moderator", "roles")
|
moderator_role = await config_get("moderators", "roles")
|
||||||
council_role = await config_get("council", "roles")
|
council_role = await config_get("council", "roles")
|
||||||
for role in member.roles:
|
for role in member.roles:
|
||||||
if role.id == moderator_role or role.id == council_role:
|
if role.id == moderator_role or role.id == council_role:
|
||||||
|
@ -83,7 +83,7 @@ class Admin(commands.Cog):
|
|||||||
# )
|
# )
|
||||||
# )
|
# )
|
||||||
# mod_role = ds_utils.get(
|
# mod_role = ds_utils.get(
|
||||||
# ctx.user.guild.roles, id=await config_get("moderator", "roles")
|
# ctx.user.guild.roles, id=await config_get("moderators", "roles")
|
||||||
# )
|
# )
|
||||||
# admin_chan = ds_utils.get(
|
# admin_chan = ds_utils.get(
|
||||||
# ctx.user.guild.channels,
|
# ctx.user.guild.channels,
|
||||||
@ -136,7 +136,7 @@ class Admin(commands.Cog):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
mod_role = ds_utils.get(
|
mod_role = ds_utils.get(
|
||||||
ctx.user.guild.roles, id=await config_get("moderator", "roles")
|
ctx.user.guild.roles, id=await config_get("moderators", "roles")
|
||||||
)
|
)
|
||||||
admin_chan = ds_utils.get(
|
admin_chan = ds_utils.get(
|
||||||
ctx.user.guild.channels,
|
ctx.user.guild.channels,
|
||||||
@ -181,7 +181,7 @@ class Admin(commands.Cog):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
mod_role = ds_utils.get(
|
mod_role = ds_utils.get(
|
||||||
ctx.user.guild.roles, id=await config_get("moderator", "roles")
|
ctx.user.guild.roles, id=await config_get("moderators", "roles")
|
||||||
)
|
)
|
||||||
admin_chan = ds_utils.get(
|
admin_chan = ds_utils.get(
|
||||||
ctx.user.guild.channels,
|
ctx.user.guild.channels,
|
||||||
|
@ -73,7 +73,7 @@ class Data(commands.Cog):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
mod_role = ds_utils.get(
|
mod_role = ds_utils.get(
|
||||||
ctx.user.guild.roles, id=await config_get("moderator", "roles")
|
ctx.user.guild.roles, id=await config_get("moderators", "roles")
|
||||||
)
|
)
|
||||||
admin_chan = ds_utils.get(
|
admin_chan = ds_utils.get(
|
||||||
ctx.user.guild.channels,
|
ctx.user.guild.channels,
|
||||||
@ -143,7 +143,7 @@ class Data(commands.Cog):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
mod_role = ds_utils.get(
|
mod_role = ds_utils.get(
|
||||||
ctx.user.guild.roles, id=await config_get("moderator", "roles")
|
ctx.user.guild.roles, id=await config_get("moderators", "roles")
|
||||||
)
|
)
|
||||||
admin_chan = ds_utils.get(
|
admin_chan = ds_utils.get(
|
||||||
ctx.user.guild.channels,
|
ctx.user.guild.channels,
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
},
|
},
|
||||||
"roles": {
|
"roles": {
|
||||||
"council": 0,
|
"council": 0,
|
||||||
"moderator": 0
|
"moderators": 0
|
||||||
},
|
},
|
||||||
"bots": {},
|
"bots": {},
|
||||||
"messages": {
|
"messages": {
|
||||||
|
Loading…
Reference in New Issue
Block a user