Update functions.py

This commit is contained in:
Elmon11 2020-12-02 23:17:00 +01:00 committed by GitHub
parent 3fa9b6e28c
commit 837b69aa5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,12 @@
import discord
import json import json
import requests import requests
from discord.ext import commands
from checks import * from checks import *
def format_list_entry(embed, list, name): def format_list_entry(embed, l, name):
embed.add_field(name="{} ({})".format(name, len(list)), embed.add_field(name="{} ({})".format(name, len(l)),
value=", ".join(list), inline=False) value=", ".join(l), inline=False)
return embed return embed