Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions techsupport_bot/commands/factoids.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async def create_factoid_call(
embed_config (str): Whether the factoid has an embed set up
alias (str, optional): The parent factoid. Defaults to None.

Raises:
Raises:
custom_errors.TooLongFactoidMessageError:
When the message argument is over 2k chars, discords limit
"""
Expand Down Expand Up @@ -433,11 +433,11 @@ async def check_alias_recursion(

return False

def get_embed_from_factoid(self, factoid) -> discord.Embed:
def get_embed_from_factoid(self, factoid: bot.models.Factoid) -> discord.Embed:
"""Gets the factoid embed from its message.

Args:
(Factoid) factoid: The factoid to get the json of
factoid (bot.models.Factoid): The factoid to get the json of

Returns:
discord.Embed: The embed of the factoid
Expand Down
7 changes: 5 additions & 2 deletions techsupport_bot/commands/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import discord
import expiringdict
import munch
import ui
from core import auxiliary, cogs, extensionconfig
from discord.ext import commands
Expand All @@ -28,13 +29,15 @@
import bot


async def has_modmail_management_role(ctx: commands.Context, config=None) -> bool:
async def has_modmail_management_role(
ctx: commands.Context, config: munch.Munch = None
) -> bool:
"""-COMMAND CHECK-
Checks if the invoker has a modmail management role

Args:
ctx (commands.Context): Context used for getting the config file
config (): Can be defined manually to run this without providing actual ctx
config (munch.Munch): Can be defined manually to run this without providing actual ctx

Raises:
commands.CommandError: No modmail management roles were assigned in the config
Expand Down