osu.py 文件源码

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

项目:pcbot 作者: pckv 项目源码 文件源码
def get_notify_channels(server: discord.Server, data_type: str):
    """ Find the notifying channel or return the server. """
    if server.id not in osu_config.data["server"]:
        return None

    if data_type + "-channels" not in osu_config.data["server"][server.id]:
        return None

    return [server.get_channel(s) for s in osu_config.data["server"][server.id][data_type + "-channels"]
            if server.get_channel(s)]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号