def context_to_dict(ctx):
    """Convert Context object into dict containing their info.

    Args:
        ctx: Context object to be converted.

    Returns:
        Dict containing information about ctx.
    """
    return {
        "content": ctx.message.content,
        "user": ctx.author.id,
        "channel": ctx.channel.id,
        "guild": ctx.guild.id if ctx.guild is not None else None,
        "message_id": ctx.message.id
    }