src/cal.py
async def display_events(ctx):
    ''' sends the embed to the channel and edits it to update it as well '''
    global MSG
    # recreate the embed from the database
    update_calendar(ctx)

    # if it was never created, send the first message
    if not MSG:
        MSG = await ctx.send(embed=CALENDAR_EMBED)
    else:
        # otherwise, edit the saved message from earlier
        await MSG.edit(embed=CALENDAR_EMBED)
 sends the embed to the channel and edits it to update it as well 
sends the embed to the channel and edits it to update it as well
sends the embed to the channel and edits it to update it as well
async def display_events(ctx):
    global MSG
    update_calendar(ctx)
    if not MSG:
        MSG = await ctx.send(embed=CALENDAR_EMBED)
    else:
        await MSG.edit(embed=CALENDAR_EMBED)
async def display_events ( ctx ) : global MSG update_calendar ( ctx ) if not MSG : MSG = await ctx . send ( embed = CALENDAR_EMBED ) else : await MSG . edit ( embed = CALENDAR_EMBED )
sends the embed to the channel and edits it to update it as well
sends the embed to the channel and edits it to update it as well
''' sends the embed to the channel and edits it to update it as well ''' # recreate the embed from the database # if it was never created, send the first message # otherwise, edit the saved message from earlier
ctx