async def METHOD_NAME(self, autoctx):
    """Checks that the user has entitlement access to the referenced entity, if applicable."""
    await super().METHOD_NAME(autoctx)
    if self.spell is None:
        return
    type_e10s = await autoctx.ctx.bot.ddb.get_accessible_entities(
        ctx=autoctx.ctx, user_id=autoctx.ctx.author.id, entity_type=gamedata.Spell.entity_type
    )
    if not gamedata.lookuputils.can_access(self.spell, type_e10s):
        raise RequiresLicense(self.spell, type_e10s is not None)