Tempoarily add a solution to gib mc exceeding the embed.add_field limit of 25, if anyone has any suggestions for how I can actually fix this issue, DM Helixu#1111

This commit is contained in:
Helixu 2021-11-20 18:19:42 +00:00
parent 4f4d83bae4
commit e438fd6d9b

3
bot.py
View file

@ -2,7 +2,7 @@
import discord import discord
from discord import File, Streaming, Game, Activity, ActivityType, Status from discord import File, Streaming, Game, Activity, ActivityType, Status
from discord.ext import commands from discord.ext import commands, tasks
import io, aiohttp, asyncio, json, random, logging, requests import io, aiohttp, asyncio, json, random, logging, requests
@ -129,6 +129,7 @@ async def mc(ctx, *, name = None):
for i in json["name_history"]: for i in json["name_history"]:
embed.add_field(name=i['name'], value=f"Changed on: {i['changedToAt']}") embed.add_field(name=i['name'], value=f"Changed on: {i['changedToAt']}")
await ctx.send(embed = embed) await ctx.send(embed = embed)
await ctx.send(f'To view names that did not show up here, go to <https://namemc.com/{username}>')
@bot.command(brief="gives credits") @bot.command(brief="gives credits")
async def credits(ctx): async def credits(ctx):