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)
|
||||
jarvis_self = Process()
|
||||
__version__ = "1.10.6"
|
||||
__version__ = "1.10.7"
|
||||
|
||||
|
||||
@jarvis.event
|
||||
|
|
|
@ -286,7 +286,7 @@ class RolegiverCog(commands.Cog):
|
|||
)
|
||||
@admin_or_permissions(manage_guild=True)
|
||||
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:
|
||||
await ctx.send("Rolegiver has no roles", hidden=True)
|
||||
guild_roles = await ctx.guild.fetch_roles()
|
||||
|
|
|
@ -52,7 +52,7 @@ class MessageEventHandler(object):
|
|||
match = invites.search(content)
|
||||
setting = Setting.objects(guild_id=message.guild.id, setting="noinvite").first()
|
||||
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()
|
||||
if match:
|
||||
guild_invites = await message.guild.invites()
|
||||
|
|
Loading…
Add table
Reference in a new issue