ui_embed.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:modis 作者: Infraxion 项目源码 文件源码
def modify_module(channel, module_name, module_state):
    """
    Creates an embed UI containing the module modified message

    Args:
        channel (discord.Channel): The Discord channel to bind the embed to
        module_name (str): The name of the module that was updated
        module_state (bool): The current state of the module

    Returns:
        embed: The created embed
    """

    # Create embed UI object
    gui = ui_embed.UI(
        channel,
        "{} updated".format(module_name),
        "{} is now {}".format(module_name, "activated" if module_state else "deactivated"),
        modulename=modulename
    )

    return gui
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号