Fix a few typos
This commit is contained in:
parent
042094be15
commit
49d6596a18
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ jarvis = commands.Bot(
|
||||||
|
|
||||||
slash = SlashCommand(jarvis, sync_commands=False, sync_on_cog_reload=True)
|
slash = SlashCommand(jarvis, sync_commands=False, sync_on_cog_reload=True)
|
||||||
jarvis_self = Process()
|
jarvis_self = Process()
|
||||||
__version__ = "1.10.6"
|
__version__ = "1.10.7"
|
||||||
|
|
||||||
|
|
||||||
@jarvis.event
|
@jarvis.event
|
||||||
|
|
|
@ -286,7 +286,7 @@ class RolegiverCog(commands.Cog):
|
||||||
)
|
)
|
||||||
@admin_or_permissions(manage_guild=True)
|
@admin_or_permissions(manage_guild=True)
|
||||||
async def _rolegiver_cleanup(self, ctx: SlashContext) -> None:
|
async def _rolegiver_cleanup(self, ctx: SlashContext) -> None:
|
||||||
setting = Setting.objects(guild_id=ctx.guild.id, setting="rolegiver").first()
|
setting = Setting.objects(guild=ctx.guild.id, setting="rolegiver").first()
|
||||||
if not setting or not setting.value:
|
if not setting or not setting.value:
|
||||||
await ctx.send("Rolegiver has no roles", hidden=True)
|
await ctx.send("Rolegiver has no roles", hidden=True)
|
||||||
guild_roles = await ctx.guild.fetch_roles()
|
guild_roles = await ctx.guild.fetch_roles()
|
||||||
|
|
|
@ -52,7 +52,7 @@ class MessageEventHandler(object):
|
||||||
match = invites.search(content)
|
match = invites.search(content)
|
||||||
setting = Setting.objects(guild_id=message.guild.id, setting="noinvite").first()
|
setting = Setting.objects(guild_id=message.guild.id, setting="noinvite").first()
|
||||||
if not setting:
|
if not setting:
|
||||||
setting = Setting(guild_id=message.guild.id, setting="noinvite", value=True)
|
setting = Setting(guild=message.guild.id, setting="noinvite", value=True)
|
||||||
setting.save()
|
setting.save()
|
||||||
if match:
|
if match:
|
||||||
guild_invites = await message.guild.invites()
|
guild_invites = await message.guild.invites()
|
||||||
|
|
Loading…
Add table
Reference in a new issue